Pandrah
If we save 12345 in a text file as a string then as the number will be saved as String and because Character is 1 byte long in C#.
Therefore, 12345 when stored in the text file, it will at least use 5 Bytes if space.
Whereas, if the number is stored binary file then the number will be stored in binary format.
(12345) ==> 0b 00110000 00111001 ==> 2 Bytes.
No comments:
Post a Comment