I made this following observations after making a text file on Ubuntu 12.10 through GUI (alt+enter) as well as in Terminal (ls -l).
- when file was empty : file size = 0 byte.
- when one character : file size = 2 bytes.
- when two characters : file size = 3 bytes.
Why 1 byte extra when the file just contains one character, i know this is not because of End-Of-File because when i wrote a c program the loop terminated when it reached End-Of-File and it gave me the same results, so obviously this doesn't count, then what is it?
But on windows when the file contained one character the file size was just 1 byte, it was normal. What are the things behind all this stuffs?