Hi folks,
I need to generate a write instruction that
writes strings to a file without appending string quotes to it and also allows me to put ; as a delimiter instead of just a comma. For example:
Dim hFile As Long
Dim v1 as string
Dim v2 as string
hFile = FreeFile
v1 = "text1"
v2 = "text2"
Open "TestFile.txt" For Append Access Write As hFile
Write #hFile, v1, v2
Close hFile
The output I've been getting is:
"text1","text2" but I really need as output:
text1;text2
Likewise I would like to be able to read the latter with input# just the way it is. I've only been able to read strings from a file, so far, by changing the format to:
"text1","text2"
I appreciate your help
regards,
Jaime
I need to generate a write instruction that
writes strings to a file without appending string quotes to it and also allows me to put ; as a delimiter instead of just a comma. For example:
Dim hFile As Long
Dim v1 as string
Dim v2 as string
hFile = FreeFile
v1 = "text1"
v2 = "text2"
Open "TestFile.txt" For Append Access Write As hFile
Write #hFile, v1, v2
Close hFile
The output I've been getting is:
"text1","text2" but I really need as output:
text1;text2
Likewise I would like to be able to read the latter with input# just the way it is. I've only been able to read strings from a file, so far, by changing the format to:
"text1","text2"
I appreciate your help
regards,
Jaime