• Post Reply Bookmark Topic Watch Topic
  • New Topic

deleting text from a file  RSS feed

 
etika ahuja
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!