Re: Read / write to the same file (General questions)
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:
- Read / write to the same file - dandraka, 2005-02-21, 14:00
- Re: Read / write to the same file - wodSupport, 2005-02-21, 15:38
- Re: Read / write to the same file - dandraka, 2005-02-21, 15:49
- Re: Read / write to the same file - wodSupport, 2005-02-21, 19:54
- Re: Read / write to the same file - dandraka, 2005-02-22, 16:56
- Re: Read / write to the same file - wodSupport, 2005-02-22, 19:54
- Re: Read / write to the same file - Traveller, 2013-05-26, 14:23
- Re: Read / write to the same file - wodSupport, 2005-02-22, 19:54
- Re: Read / write to the same file - dandraka, 2005-02-22, 16:56
- Re: Read / write to the same file - wodSupport, 2005-02-21, 19:54
- Re: Read / write to the same file - dandraka, 2005-02-21, 15:49
- Re: Read / write to the same file - wodSupport, 2005-02-21, 15:38