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

Re: How to open a text file in vb.net 80 80

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

Re: How to open a text file in vb.net 80 80

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..

Re: How to open a text file in vb.net 80 80

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

Re: How to open a text file in vb.net 80 80

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.