I thought it might be a good idea to post the code of the examples Paul gives, and that are not on the DVD, ... since I spent hours trying to find what went wrong,
installing and uninstalling distro A and distro B, package C,D,E and F etc etc,
when in the end I had just forgotten to put the added code in braces

So to help others save some time, by showing them the code that actually works, I'm posting it here.

// project created on 12/28/2006 at 4:20 PMusing System;using System.IO;

namespace conditionalStatementsAndLoops{ class conditionalStatementsAndLoops { public static void Main(string[] args) { string conditie = File.ReadAllText("conditie.txt"); conditie += "\nHey .. With this ONE program I'm sending output in two directions; part of it lands in a file and another part to screen .. Kewl !"; File.WriteAllText("conditie.txt", conditie); Console.Write(conditie); Console.WriteLine("\n"); for (int i = 1; i <= 16; ++i) { Console.WriteLine("Thunder.."); } Console.WriteLine("Thundercats ! HO !\n"); Console.WriteLine("But this gooblygoock is not being written to the file conditie.txt terecht :-) !"); } }}

Sorry !! I could not resist trying it and posting it !!Must be getting addicted

Not specifically in reply to your posts, but, I am a long-time M$ hater and I cannot believe that anything out of Redmond is worth anything - having seen the ease with which one can accomplish things in C#, I have to re-evaluate my position ... - DAMN - I HATE having to think again ...

Some of the stuff in C# is great. You can see that it has progressed from both Java and C++ (I love the @ to make strings literal between the start and end quotes, no escaping). But others really suck and you wonder why they didn't stick with the Java way of doing things.

Tony

In the beginning was nothing, which exploded! (Lords and Ladies, Terry Pratchett)

Hi, I'm trying the code you posted, but it won't compile, giving error message 'System.IO.File' does not contain a definition for ReadAllText. As this is my first ever bit of C#, I seem to be stuck pretty early on!

... I'm trying to follow the tutorial on a Windows PC - assuming that as this is cross platform, all will be exactly the same. So I don't have the Monodevelop IDE. But I can compile a helloworld and the executable is written to the same directory as the source was in. And the exe runs correctly. And I've done a cut and paste on the code you posted to make sure the braces can't be in the wrong place - but I still get the same error.

I could restart my PC and load up SLED which is the dual boot alternative, then I dare say it would work, but I'm not really trying to prove that Mono works on Linux - I believe that bit - what I really want to show is that Mono works just the same on Windows.

Hi Stuart,
I'm sorry, but I am really not interested in Windows. However:
You seem to be sure it would work in SuSE (gnome), mono and monoDevelop, so I think the best thing for you to solve the problem, is try it yourself by booting into SuSE Linux, and see what's different from your windows version.
GoodLuck.
Lis

Does anybody know? Is there a debugger that integrates with "monoDevelop"?
moneDevelop is a very nice ide, but if there is not a debugger then its not very "i"
And yes I know about mint, but that is CLI and doesn't feel right with the monoDevelop GUI

Why do I want this? because I am trying to teach my son(11) to program and C# looks good for this. But I know that he wont like a CLI debugger Maybe we will stick with C/C++, but it is TOO easy to write dodgy programs in these languages. ( I know - its my dayjob ) dodgy programmer R us