I wanted to remove the last char in file and
- Not writing a new file and rename it
Because the file will grow larger over time (From a 1 byte file to 1 GB file, increase by 1 byte over time (1000000000 rewrites cycle)) and the rewrite will damage the hard disk