I have a program that write data in line-by-line mode that use the following code
dim ch_o as integer
dim data_str as string
ch_o = freefile()
open "out.txt" for output as #ch_o
data_str = "1234 56 abcd"
print #ch_o, data_str
this way, the data is writen in to file "out.txt", and create CR/LF at the end of each line
Now, I have a need to write the datafile, that will be continous char by char, NO CR/LF
but each data line could be a variable length. (I suppose I can write one byte at a time).
1. How do I open that file (for output, or for append), must have some file type?
2. what vb6 syntax I need to use?
for i = 1 len(data_str)
write ch_o, mid(data_str,i,1)
I am sure VB6 can take care of this type of issues. Please help me.