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

Recommended Answers

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

Jump to Post

All 4 Replies

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

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.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.