Home All Groups Group Topic Archive Search About

Newbie: Write line to file question

Author
17 Oct 2005 11:07 PM
smith
Hi,

I have the following line:

write #fileNum, Data(i).myDate & "," & Data(i).value

in a loop etc. nothing special.
But I get:

"12/29/1980,1.0653"

which is fine, but i dont want the quotes (") !!! why does VB add the quotes
and how can i remove them?

I want to store it as: #12/29/1980#,1.0653.

Since then i want to make sure it is read as a date and a long .

TIA
-steve

Author
17 Oct 2005 11:34 PM
Bob Butler
"smith" <jsm***@yahoo.ca> wrote in message
news:c9W4f.19614$GH1.172354@news20.bellglobal.com
> Hi,
>
> I have the following line:
>
>  write #fileNum, Data(i).myDate & "," & Data(i).value

Read the help for "write", "print" and "put"

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
17 Oct 2005 11:38 PM
AGP
use Print instead of Write.

AGP

Show quoteHide quote
"smith" <jsm***@yahoo.ca> wrote in message
news:c9W4f.19614$GH1.172354@news20.bellglobal.com...
> Hi,
>
> I have the following line:
>
>  write #fileNum, Data(i).myDate & "," & Data(i).value
>
> in a loop etc. nothing special.
> But I get:
>
> "12/29/1980,1.0653"
>
> which is fine, but i dont want the quotes (") !!! why does VB add the
quotes
> and how can i remove them?
>
> I want to store it as: #12/29/1980#,1.0653.
>
> Since then i want to make sure it is read as a date and a long .
>
> TIA
> -steve
>
>