opening files

jstewart

Member
Joined
Jun 18, 2003
Messages
6
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.
 
Use a stream reader to open a file.
Code:
Dim reader As New System.IO.StreamReader("pathtofile")
do thing like realine, readtoend...
reader.ReadLine()
reader.ReadtoEnd()
 
Back
Top