Hi i have a small problem when writing to a file, it writes unwanted " at the begining and end.
vb Code:
Private Sub Command1_Click() Dim str As String str = "[Test]" & vbNewLine & "S0=ftp.mysite.com" & vbNewLine & "S1=grabs" & vbNewLine & "[email protected]" & vbNewLine & "S3=password" & vbNewLine & "S4=http://www.mysite.com/grabs/" Open App.Path & "\settings.ini" For Output As #1 Write #1, str Close #1 End Sub
the output is
when is should beCode:"[Test] S0=ftp.mysite.com S1=grabs [email protected] S3=password S4=http://www.mysite.com/grabs/"
Does anyone have a soloution? ThanksCode:[Test] S0=ftp.mysite.com S1=grabs [email protected] S3=password S4=http://www.mysite.com/grabs/




Reply With Quote