in reply to Re^2: output can be displayed in screen, but not in output file
in thread output can be displayed in screen, but not in output file

To prevent unwanted disaster I suggest the first step should be to rename the file file.txt -> file.txt.bak. Then read this .bak file and write out the new file, that way you retain the original in case you accidentally destroy the data, which is easy enough to do.

  • Comment on Re^3: output can be displayed in screen, but not in output file