how to run line by line in text file - on windows mobile ?

Posted by Gold on Stack Overflow See other posts from Stack Overflow or by Gold
Published on 2011-01-06T20:50:31Z Indexed on 2011/01/06 20:54 UTC
Read the original article Hit count: 274

Filed under:
|

hi

in WinForm on PC i use to run like this:

FileStream FS = null;
StreamWriter SW = null;
FS = new FileStream(@"\Items.txt", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite);
SW = new StreamWriter(FS, Encoding.Default);
while (SW.Peek() != -1)
{
   TEMP = (SW.ReadLine());
}

but when i try this on Windows-mobile i get error:

Error   1   'System.IO.StreamWriter' does not contain a definition for 'Peek' and no extension method 'Peek' accepting a first argument of type 'System.IO.StreamWriter' could be found (are you missing a using directive or an assembly reference?)
Error   2   'System.IO.StreamWriter' does not contain a definition for 'ReadLine' and no extension method 'ReadLine' accepting a first argument of type 'System.IO.StreamWriter' could be found (are you missing a using directive or an assembly reference?)

how to do it ?

thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-mobile