quotation marks

lmb2001
09-30-2001, 08:09 PM
when writing to a file i need to put qoutation marks..it dont work?why?how do I fix this?please help!

==============
?¿-=The Bomb=-¿?
"You all stare, but you'll never see; theres something inside me!"

orufet
09-30-2001, 08:52 PM
What code are you using to write to a file?

"I do not agree with a word you say, but I will defend to the death your right to say it" - Voltaire

hashir56
09-30-2001, 10:37 PM
here's another way of doing it:
Open "C:\windows\desktop\Output.txt" for output as #1
print #1, chr(34) & "Text inside quotation mark" & chr(34)
close #1
the chr(asciicode) function translates the given ascii char number which is in this case is 34, the ascii code for the Quotation mark, to it's desired character. Hope this helps!

Volte
10-01-2001, 01:19 PM
saying

Print #1, """Text inside quotation mark"""

may work too.

hashir56
10-01-2001, 01:23 PM
i never knew about that way of doing it

KesleyK
10-01-2001, 08:50 PM
Don't have VB on this machine so I can't verify, but isn't it 4 rather than 3? I could be mistaken but thought I'd mention something jic...

__________
HOOOaaaaa! Semper Fi!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum