Friday, March 5, 2010

Short Tips to Remember (1)

The OpenText method returns a StreamReader object:

FileInfo objFile = new FileInfo(@"c:\ref29.txt");
StreamReader sr = objFile.OpenText();
string s = sr.ReadToEnd();
sr.Close();

- - - - - - - - - - - - - -
Recommended Blogs:

1)

Improve Your General Knowledge in Leisure Time!

http://www.gklt.blogspot.com/

also on Amazon:

http://www.amazon.com/Improve-Your-General-Knowledge-Leisure/dp/B002MUB11S

2)

Improve Your Vocabulary in Leisure Time!

http://ievlt.blogspot.com/

also on Amazon:

http://www.amazon.com/Improve-Your-Vocabulary-Leisure-Time/dp/B0036B9STY

3)

Improve Your Memory (Level 1 of 3)

http://iymbas.blogspot.com/

also on Amazon:

http://www.amazon.com/Improve-Your-Memory-Level/dp/B0036FTMSW

No comments:

Post a Comment