Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.