Android Question Problem with SaveAs function

noeleon

Active Member
Licensed User
I ran into a problem running the example from

If you overwrite a bigger file by clicking its filename before clicking SAVE, the new data is written but the file is still the same size and old contents remain.

How to fix this?
 

noeleon

Active Member
Licensed User
Screenshot_20230908-172326.jpg
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Don't you get a new filename? Erel said if the file exists, the name will be changed

The file name will also be changed if there is an existing file with the same name.

 
Upvote 0

noeleon

Active Member
Licensed User
If I select the file, it is overwritten and the new data in the file is correct
I use SaveAs for backup but I recently noticed that the file keeps getting bigger even if the data saved is small.

Here's a screen recording showing the before and after of the overwritten file.
 
Upvote 0
Top