Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How To write to a text file.

Reply
Thread Tools

How To write to a text file.

 
 
Ravikanth[MVP]
Guest
Posts: n/a
 
      07-18-2003
Hi

Use the following code.

string sJoblogFileName = "TextFile.txt";
System.IO.StreamWriter LogFile =new System.IO.StreamWriter
(sJoblogFileName,true);
LogFile.WriteLine("blah blah blah");
LogFile.Close();

HTH
Ravikanth


>-----Original Message-----
>I want to write to text file the follow text "My name is
>Mike"
>
>now I have used the follow systax
>dim strPath as string = "C:\"
>dim strFileName as string
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Response.write to write to a specific area on a aspx pa =?Utf-8?B?QWJlbCBDaGFu?= ASP .Net 6 05-03-2006 10:16 PM
how to use javascript write text to an Input text box acord Javascript 3 03-24-2006 01:44 PM
Controlling text in a Text Area or Text leo ASP General 1 12-05-2005 01:13 AM
python+windows/linux -> write stdout text to always on top text? flamesrock Python 5 05-04-2005 06:34 PM
Change text color for one document.write but not color of all text? kroger@princeton.edu Javascript 7 02-02-2005 01:23 PM



Advertisments