jstewart Posted June 23, 2003 Posted June 23, 2003 im having a stupid problem. im trying to open a file using vb .net. im trying to use file.openfile and it is saying file is not declared, or i get a message that says openfile is not part of string. what do i declare to get this to work? thanks for your help. Quote
*Experts* mutant Posted June 23, 2003 *Experts* Posted June 23, 2003 Use a stream reader to open a file. Dim reader As New System.IO.StreamReader("pathtofile") 'do thing like realine, readtoend... reader.ReadLine() reader.ReadtoEnd() Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.