09-18-2019 05:15 AM
OK,
Thank you all for replaying.
You raised some pretty good ideas.
All of them require some changes in my code and so I need some time to discuss the best way to go with my teammates...
Hope to update soon...
Thank you for all the help!
BR,
Mentos
09-18-2019 10:44 AM
I like "outside-the-box" thinking (a Kudo to Alexander Sobolev). You can combine his clever idea (start at the end) with mine (make a small copy then "chop off" what you copied). Here's a melding of our two ideas:
Bob Schor
10-03-2019 03:30 AM
Hi again,
Sorry for the long time...
I managed to implement the "outside the box" thinking you suggested as follows:
1) Reading a chunk of data from the END of the original file
2) Do "file size" to shorten the original file.
3) Save the read chunk in a new, temporary file
4) Repeat steps 1-3 to read all the data from the original file into small, separate, chunks files. No the original file is empty and all the data is stored in separate temporary data files.
5) Do another loop to combine all the separate data files into one big final data file (reverse chunk order so first read chunk from step#1 is the last to be saved into the big final file).
I did some tests and it seems to be working very nicely!
Bob and Alexander, I think you both deserve a Kudo!
Thank you very much and thanks for everyone who responded on this post.