471,350 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

truncate a random access file

1-how can i truncate a random access file so i can "delete" the field I don't
need anymore in it?

2- is there a better way to swap the field in a random access file then
reading it to put it back where u want it
ex:
.....
fileget(1, Data, i) ' "i" is the variable used for the loop
fileput(1, Data, (i-1)) 'will put the field in the field just before him,
so i
can "delete" a certain field by
overwriting it
.....
Jul 21 '05 #1
0 810

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Oin Zea | last post: by
1 post views Thread by New MSSQL DBA | last post: by
reply views Thread by Pykardo | last post: by
16 posts views Thread by Claudio Grondi | last post: by
1 post views Thread by hedgracer | last post: by
1 post views Thread by iceman | last post: by
5 posts views Thread by Timothy Madden | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.