Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How do I open up a simple text file?

Hi I'm interested in opening up a txt file but I DONT meant to open it up with a streamreader , I mean open it up like you normally would with your mouse when you double click on it . I'm not talking about using mouse events neither , I just want the thing to pop open after some code executes so I can make whatever changes to it with my keyboard .

pretty much I just want to open it up with code rather than double clicking on it.
[463 byte] By [Matrix.net] at [2007-11-11 10:15:43]
# 1 Re: How do I open up a simple text file?
http://msdn2.microsoft.com/en-us/library/53ezey2s.aspx
Phil Weber at 2007-11-11 20:48:20 >
# 2 Re: How do I open up a simple text file?
You could basically shell out to notepad and pass the name of the text file.
jedicoder at 2007-11-11 20:49:15 >
# 3 Re: How do I open up a simple text file?
You don't even have to do that; just pass the name of the file to Process.Start.
Phil Weber at 2007-11-11 20:50:25 >