monica1
22nd November 2005, 18:31
I need to write a text file and at the end of the program I need to write the first line of the file. Is it possible?
I try with this:
......all the code
fp = seq.open(bse.tmp.dir$()&strip$(tfecm007.paths) &"/"& nombre.fichero,"a", ruta)
w = seq.seek(0, 0, fp)
for w=1 to 150 step 1
seq.putc$(linea.csbbk(w;1),fp)
endfor
seq.putc$(chr$(13),fp)
seq.putc$(chr$(10),fp)
seq.close(fp)
How can I do that?
Thank you in advance,
I try with this:
......all the code
fp = seq.open(bse.tmp.dir$()&strip$(tfecm007.paths) &"/"& nombre.fichero,"a", ruta)
w = seq.seek(0, 0, fp)
for w=1 to 150 step 1
seq.putc$(linea.csbbk(w;1),fp)
endfor
seq.putc$(chr$(13),fp)
seq.putc$(chr$(10),fp)
seq.close(fp)
How can I do that?
Thank you in advance,