Mr.Blond Level: Protégé
 Registered: 21-07-2005 Posts: 4
|
Read txt.files with vb.net
Hi all,
I have problems to get the text of a txt.file in a textbox.
I ve got a OpenFileDialog, a textbox and a button to start the OpenFileDialog. The OpenFileDialog gives me the following choises: FileName, Filter, FilterIndex, GetType, InitialDirectory, ShowDialog. But I can´t open the choisen file.
In embbded Visual Basic 3.0 is a tool called File. There I can Use the method open (File1.Open "Name des Files", fsModeInput, fsAccessRead
textbox1.text = File1.LineInputString
I am going mad. It can t be so difficult. if anyone has an Idea please help me.
Thanks for every help
|