954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to open a text file in vb.net

Hi,

I have this program that validates error and then logs it in a text file,
but here is the problem, I want to know how show the text file that has been made after the logs have been written,

for example, I have validated all the errors, and then creates a text file that has appended all the strings, then after my pop message, I want the text file to pop also, showing all the logs that have been created..

how can this be made?

thanks

jbutardo
Junior Poster in Training
73 posts since Jan 2012
Reputation Points: 8
Solved Threads: 1
 

You will want to check out how to use the stream reader class to open a file (stream) and read the data.
The MSDN article can be found here:
http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx

hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
 
You will want to check out how to use the stream reader class to open a file (stream) and read the data. The MSDN article can be found here: http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx

I need to Pop the text file, I think streamreader can't do it..

jbutardo
Junior Poster in Training
73 posts since Jan 2012
Reputation Points: 8
Solved Threads: 1
 

The stream reader will let you access the text in the file. Once it is a string you can do whatever you want with it

hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
 
The stream reader will let you access the text in the file. Once it is a string you can do whatever you want with it

I mean I need to show the text file, not just the contents

jbutardo
Junior Poster in Training
73 posts since Jan 2012
Reputation Points: 8
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: