G
Guest
The only code that is helpful is this:
fp = New IO.StreamReader(filename, New
System.Text.UnicodeEncoding(True, False), False)
If I pass a command line argument to my program that is not from Visual
Studio.NET is debug mode, the above code won't work, even though filename is
not changed whether I pass a command line argument or not. By not work, I
mean it will set fp.EndOfStream to true and fp.Peek() returns -1. The command
line argument is a file name, but not "filename" and is irrelevant. The file
is not concurrently open by any other program. Can someone please help me or
tell me how to work around what is probably is bug in VB.NET?
fp = New IO.StreamReader(filename, New
System.Text.UnicodeEncoding(True, False), False)
If I pass a command line argument to my program that is not from Visual
Studio.NET is debug mode, the above code won't work, even though filename is
not changed whether I pass a command line argument or not. By not work, I
mean it will set fp.EndOfStream to true and fp.Peek() returns -1. The command
line argument is a file name, but not "filename" and is irrelevant. The file
is not concurrently open by any other program. Can someone please help me or
tell me how to work around what is probably is bug in VB.NET?