| View previous topic :: View next topic |
| Author |
Message |
Cheemag

Joined: Mon Jan 18, 2010 5:17 pm Posts: 7 Location: English Region, EU
|
Posted: Sat Jan 23, 2010 3:22 pm Post subject: ToDoList - Programming Academy |
|
|
OK I've typed in the highlighted lines in the special edition booklet as
they appear. Is this supposed to compile: (?)
| Code: |
using System;
using System.IO;
var contents=File.ReadAllText("todo.txt");
contents=File.ReadAllText("someotherfile.txt");
contents="Hello World";
Console.WriteLine(File.ReadAllText("todo.txt"));
|
Gives:
2 Errors
! .. Line Description
Using the CD that came with the booklet, you could have warned users
that the keyboard wasn't set up! _________________ Regards,
Cheemag.
Linux Mint-8 on a key-drive.
PCLinuxOS 2009-2.
Windows XP Home SP2 |
|
| Back to top |
|
 |
Judda
Joined: Sun Jan 10, 2010 9:41 pm Posts: 9
|
Posted: Sat Jan 23, 2010 5:03 pm Post subject: |
|
|
Is that the complete program, as it's missing a lot of code & {}.
You should take a look at the code listing on the disk for the ToDoList. |
|
| Back to top |
|
 |
Cheemag

Joined: Mon Jan 18, 2010 5:17 pm Posts: 7 Location: English Region, EU
|
Posted: Sun Jan 24, 2010 12:00 pm Post subject: |
|
|
| Judda wrote: | Is that the complete program, as it's missing a lot of code & {}.
|
That's all the highlighted bits within the section "Reading from a File" to the end of that section. I assumed that you just string all the highlighted bits together and run the thing. (?)
| Quote: |
You should take a look at the code listing on the disk for the ToDoList. |
I'll see if I can find it.
How do I switch off Mono's annoying and distracting suggestions system when trying to type code into the IDE? _________________ Regards,
Cheemag.
Linux Mint-8 on a key-drive.
PCLinuxOS 2009-2.
Windows XP Home SP2 |
|
| Back to top |
|
 |
Judda
Joined: Sun Jan 10, 2010 9:41 pm Posts: 9
|
Posted: Sun Jan 24, 2010 5:30 pm Post subject: |
|
|
"How do I switch off Mono's annoying and distracting suggestions system when trying to type code into the IDE?"
I thought this is one of mono's greatest features.
If you read them, you'll learn quite a bit - well I do anyway.
To turn off: edit>preferences>text editor>general>untick "Enable code completion">OK |
|
| Back to top |
|
 |
Cheemag

Joined: Mon Jan 18, 2010 5:17 pm Posts: 7 Location: English Region, EU
|
Posted: Mon Jan 25, 2010 3:17 pm Post subject: |
|
|
| Judda wrote: | "How do I switch off Mono's annoying and distracting suggestions system when trying to type code into the IDE?"
I thought this is one of mono's greatest features.
If you read them, you'll learn quite a bit - well I do anyway.
To turn off: edit>preferences>text editor>general>untick "Enable code completion">OK |
Thank you. _________________ Regards,
Cheemag.
Linux Mint-8 on a key-drive.
PCLinuxOS 2009-2.
Windows XP Home SP2 |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|