Hello
The expression in a while or if statement must evaluate to a boolean
The following should work
while((sline = m_StreamReader.ReadLine()) != null)
Best regards,
Sherif
"Bagger Vance" <hi****@fuji.mount.> wrote in message
news:1108688616.b75be9ccfbb624e9ca938f5b6e0cd08d@t eranews...
The code below does not work -- but is there a way to do this?
I want to both read a line and
string sline;
StreamReader m_streamReader = new StreamReader(fi);
while(sline=m_streamReader.ReadLine())
Debug.WriteLine(sline);