Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ToDoList - Programming Academy

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Cheemag



Joined: Mon Jan 18, 2010 5:17 pm
Posts: 7
Location: English Region, EU

PostPosted: Sat Jan 23, 2010 3:22 pm    Post subject: ToDoList - Programming Academy Reply with quote

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
View user's profile Send private message Send e-mail
Judda



Joined: Sun Jan 10, 2010 9:41 pm
Posts: 9

PostPosted: Sat Jan 23, 2010 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Cheemag



Joined: Mon Jan 18, 2010 5:17 pm
Posts: 7
Location: English Region, EU

PostPosted: Sun Jan 24, 2010 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Judda



Joined: Sun Jan 10, 2010 9:41 pm
Posts: 9

PostPosted: Sun Jan 24, 2010 5:30 pm    Post subject: Reply with quote

"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
View user's profile Send private message
Cheemag



Joined: Mon Jan 18, 2010 5:17 pm
Posts: 7
Location: English Region, EU

PostPosted: Mon Jan 25, 2010 3:17 pm    Post subject: Reply with quote

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 user's profile Send private message Send e-mail
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast