Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18013
Number of posts: 55386

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to write to a file without the quotemarks? Posted by VBNert on 20 Jun 2006 at 2:35 AM
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?
Report
Re: How to write to a file without the quotemarks? Posted by ShawnHollon on 20 Jun 2006 at 10:56 AM
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?
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.