[Mono-dev] This code not this worked in Linux.
kornelpal at gmail.com
Tue Apr 24 09:29:03 EDT 2007
FileOpen seems not to be implemented yet in Mono. Use StreamReader instead
that is much better than the VB6-like file handling and is implemented by
Mono as well. Also note that Chr(10) & Chr(13) sequence is not used by an
modern operating systems as new line.
Windows uses CR, LF (#13, #10) and Unix-like systems use LF (#10). You
should use ReadLine, WriteLine methods or Environment.NewLine property
instead of using hard coded new line sequences.
----- Original Message -----
From: "LB Audio Uchoa NET" <lbaudio at uchoanet.com.br>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, April 24, 2007 3:07 PM
Subject: [Mono-dev] This code not this worked in Linux.
FileOpen(1, "file.txt", OpenMode.Input, OpenAccess.Read)
Do Until EOF(1)
Console.Write(LineInput(1) & Chr(10) & Chr(13))
Hello Word Line 01
Hello Word Line 02
Hello Word Line 03
More information about the Mono-devel-list