Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to a file

Status
Not open for further replies.

LancerSE2

Programmer
Feb 12, 2003
8
GB
Does anyone know how to write to a file without getting those quotation marks at the start and end of the file?

Any help would be appreciated
 
Open "C:\Path\to\file\file.txt" for output as #1
Write #1, "some text"
Print #1, "some more text"
Close #1

the "Write" statement puts quotes around what is written to the file. The "Print" statement does not put quotes around what is written to the file. I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
You could using the Microsoft Scripting Runtime Library and use the FileSystemObject and TextStream to create and write to your file also.
 
Hi there,
guys here are right,

and if u want another nice object top use it is ADODB.Stream,
it works perfectly with text and binary files.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top