..


Sponsored Links

Write

The Write method of 'TextStream writes a specified text in a file TextStream.

Note: This method writes the text in a file TextStream no spaces or line breaks.

The Write method takes one parameter, ie the text you want to write. Here's an example:






 dim fs, f









 'I create an instance of the FSO







 Set fs = Server.CreateObject ("Scripting.FileSystemObject")

 







 'I open the file







 Set F = fs.CreateTextFile ("c: \ test.txt", true)









 'I write in







 f.write ("Hello!")







 f.write ("How are you?")









 'Close







 f.close









 'I cleaned







 Set F = Nothing







 Set fs = Nothing



The file test.txt will look like this after running the above code:
 



 Hello, How are you?

 

In the same category ...
E-Learning
ASP (Advanced) ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €.
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
ASP and Access (Ebook) ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €.
Sponsored Links