PDA

View Full Version : adding some data to a file



dariush2003jp
دوشنبه 10 آذر 1382, 07:27 صبح
Hi there;
I need to open 500 files (Chin.001, .., Chin.500) going to line 20, and end of the already written line add one space and type 0.0 agan an space and add 0.0, close the file and save it and then going to next file.
Something like:
for i:=1 to 500
openfile(chin.i)
gotoline 20
end of line add ' ' ,0.0,' ',0.0
save the file
close it
next i
van anybody please help?
Best
Dariush.

sql_qassem
یک شنبه 30 آذر 1382, 19:58 عصر
آقای بیسیک نویس باید اسم فایلهایت را بسازی بعد باز کنی
file_name='chin.'+strI(i)uuuuuuuuuuuuuuuuuuuuuuuuu uuuuuuuuuuuuuuuuuuuuuu

function str(ineger i);uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu uu
beginuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu uuuuuuuuuuuuuuuuu
if i<10 then return('00'+inttostr(i));uuuuuuuuuuuuuuuuuuuuuuuuu uuuuuuuuuu
if i<100 then return('0'+inttostr(i));uuuuuuuuuuuuuuuuuuuuuuuuuu uuuuuuuuu
...
...
..

enduuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu uuuuuuuuuuuuuuuuu

SQL
8)