maheswar
17th November 2010, 11:47
Hi everyone,

i have a problem in .txt file..

someone will add data to .txt file..
as
item001
item002
.
.
.
item010

i am reading these data...
later again he is adding data, and i need to read new data only not the old data.
so i am not getting how the file pointer will point that new records.
ex:
item001
item002
.
.
.
item010
item011<------fp
item012
item013
..
..
..
..
item 220
pls help me........

bdittmar
17th November 2010, 13:56
Hi everyone,

i have a problem in .txt file..

someone will add data to .txt file..
as
item001
item002
.
.
.
item010

i am reading these data...
later again he is adding data, and i need to read new data only not the old data.
so i am not getting how the file pointer will point that new records.
ex:
item001
item002
.
.
.
item010
item011<------fp
item012
item013
..
..
..
..
item 220
pls help me........

Hello,

read the whole data and process it in selectempty by using

db.insert(table, db.retry)

so only new data is stored in table.

e.g.

read.data from.file()
............
select *
from table for update
where .......
selectdo
<do nothing>
selectempty
<add data to table>
endselect

Regards