I tryed to use the following code
Private Sub Command1_Click()
Open "c:\my documents\Port.txt" for output as #
Write #1,N
Write #1,B10,10,0,3,3,7,200,B,"987654321"
Write #1,P1
close #1
It will not write the strings (as in N,B10,B,P1)
to the file it will only write the numbers
Now I know that if I use the quotation ("
it will write them to file
But I need the string in the file without the quotation
markes.
I need it looking like this
N
B10,10,0,3,3,200,B10,"987654321"
P1
and not like this
"N"
"B10,10,0,3,3,200,"B10","987654321"
"P1"
can any one help I am new to VB
thanks
Duf
Private Sub Command1_Click()
Open "c:\my documents\Port.txt" for output as #
Write #1,N
Write #1,B10,10,0,3,3,7,200,B,"987654321"
Write #1,P1
close #1
It will not write the strings (as in N,B10,B,P1)
to the file it will only write the numbers
Now I know that if I use the quotation ("
But I need the string in the file without the quotation
markes.
I need it looking like this
N
B10,10,0,3,3,200,B10,"987654321"
P1
and not like this
"N"
"B10,10,0,3,3,200,"B10","987654321"
"P1"
can any one help I am new to VB
thanks
Duf