From: <phi...@ho...> - 2005-08-04 09:37:18
|
Hi list, Is there a lot of things done when we excecute tables.openFile(filename,mode)? In my program, i need to use the file object at the beginning and at the end of the use of it. For the moment, i open the file, retrieve attributes and close the file object. When the user needs to modify data, i open a new object file, save the data and close the file. Finally, i need to retrieve all the data so i open the file another time and close it after. That was to avoid memory waste. Do you think it's better to open the file at the beginning and keep the file object and reuse it for saving data and retrieve all data? Thanks a lot for your suggestions, Philippe Collet |