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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Output to file with no quotes

Status
Not open for further replies.

mwiner

IS-IT--Management
Oct 24, 2002
266
US
I am trying to do:

Write #2, "HD test"

but when the program is done and I open the file in a text editor it still has the quotes around it. But if I don't use quotes on the write command it won't write anything at all?

Thanks!

-Matt
 
Try:

Code:
Print #2, "HD Test"

That should get rid of the quotes.

tbuch
 
Thank you everybody for your help! it worked great. But now I got a new one, but similar question for you.

this is what I have:
--------------
var = "Organization Name"

print #2, "OrgName=" & var
----------------
So my output looks like this:
OrgName=Organization Name

But I NEED it to look like this:
OrgName="Organization Name"

With the quotes. Is there a way to do a print that does not do a return at the end so then I can do a write or something.

Thank!

-Matt
 
print #2, "OrgName=""" & var & """"
 
Or you could do this:

Code:
Print #1, "OrgName=";
Write #1, "Organization Name"

tbuch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top