Click to See Complete Forum and Search --> : Opening a notepad file


Brooke03
March 5th, 2006, 12:16 AM
I have created a program in C# that takes a few registry keys (Processor Identifier, Vendor Identifier, Bios Status, Bios Date, and System Identifier) and places the information into a command prompt window. What I want to do is place them into a notepad file. How can I go about having the program open notepad and having the information placed in there?

Alex F
March 5th, 2006, 04:38 AM
Use StreamWriter class:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOStreamWriterClassTopic.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconWritingTextToFile.asp