Hello, im saving alot of files, the paths are assigned in a listbox, eg the listbox could look like this:
E:\Delphi\My Folder\abc.txt
E:\Delphi\My Folder\def.txt
E:\Delphi\My Folder\ghi.txt
i can save these no problem, the problem im experiencing though is this:
i can view these files by browing through a treeview, and then the TMemo loads the appropriate file, but after i have saved all the files, clicking the files in the treeview show nothing.
IT IS NOT A PROBLEM WITH THE CODE THOUGH...., if i open the files from windows into notepad or wordpad the files are blank, empty, contain nothing!
however, if i close the program, the files are normal again, so rerunning my program, browsing through the treeview again works.
Ive tried using CloseFile but im not sure, and not so good with File I/O operations.
I would be grateful if anyone could explain why the files are blank when i overwrite them, but become normal when i close the program????
Thank You!!!
E:\Delphi\My Folder\abc.txt
E:\Delphi\My Folder\def.txt
E:\Delphi\My Folder\ghi.txt
i can save these no problem, the problem im experiencing though is this:
i can view these files by browing through a treeview, and then the TMemo loads the appropriate file, but after i have saved all the files, clicking the files in the treeview show nothing.
IT IS NOT A PROBLEM WITH THE CODE THOUGH...., if i open the files from windows into notepad or wordpad the files are blank, empty, contain nothing!
however, if i close the program, the files are normal again, so rerunning my program, browsing through the treeview again works.
Ive tried using CloseFile but im not sure, and not so good with File I/O operations.
I would be grateful if anyone could explain why the files are blank when i overwrite them, but become normal when i close the program????
Thank You!!!