How to write to a file without the quotemarks? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to write to a file without the quotemarks?

VBNertVBNert Posts: 20Member
Hi,

i got a little problem :( i want to write to a file, but when i use something like this it doesnt work as i want, because it gives all stuff with quotemarks in the file:(

str1 = "hello world"
str2 = "how are you doing?"
Open abc for output as #1
Write #1, str1
Write #1, str2
Close #1

Output becomes something like this:
"hello world"
"how are you doing?"

how can i write to a file without the quotemarks?

Comments

  • ShawnHollonShawnHollon Posts: 6Member
    Use Print #1, str


    The print keyword will not output the quotes.
    : Hi,
    :
    : i got a little problem :( i want to write to a file, but when i use something like this it doesnt work as i want, because it gives all stuff with quotemarks in the file:(
    :
    : str1 = "hello world"
    : str2 = "how are you doing?"
    : Open abc for output as #1
    : Write #1, str1
    : Write #1, str2
    : Close #1
    :
    : Output becomes something like this:
    : "hello world"
    : "how are you doing?"
    :
    : how can i write to a file without the quotemarks?
    :

Sign In or Register to comment.