Re: Read / write to the same file - WeOnlyDo Discussion board

Re: Read / write to the same file (General questions)

by Traveller, Sunday, May 26, 2013, 14:23 (4198 days ago) @ wodSupport

Hi dandraka,
I think I have a simple Solution for you:

1- Open your Source File decrypt it, Read Line by Line or in Chunks.
2- Mean While you should have Opened anew File for Writing Purpose and immidiately
write the previous chunks to this file untile your source file will comes to
an end.
3- After this step Now add your New Records by writting them or say appending them
Until you come to an end too, Then Close File both.
4- Rename your Course File to BB.dat.
5- rename the New Written File Containing old And new Records ... Updated to the Old
Name of your Source File.
6- Now Encrypt it.

Test the Above Idea on A Sample Dbase Until you become Sure it Works, The Apply to
Your Work.

Best Regards.


Complete thread: