how to delete text from a file without creating a new file and then copying the data from the old file and then renaming the file
posted 6 years ago
Even if it were possible, it's not a good idea. If the program were to terminate in the midst of updating the file you'd most likely be left with a corrupt file. What is the underlying issue you're trying to address?