I have an output file, say OUT.TXT generated using VB6 code.
I also have an input data file say IN.TXT stored on my computer and I need to copy data from some of the columns tn the file IN to the corresponding columns in the file OUT. At present the columns in OUT that I need to put the data in have 0's or nulls.
Pleae help.
You need to read the file IN.TXT in line by line.
For instance,
Dim n as integer, textline(1000) as string 'for a file up to 1000 lines long
n=1
Open "IN.TXT" for input as #1
while not eof(1)
line input #1, textline(n) 'get whole line
n=n+1
wend
close #1
You now have the whole of your IN.TXT in the
textline array and you can pick out the columns you require from there.
Hope this helps.
The Peasant