HomeForumsWhat's newResources 
 
 
Stupid trivia question about ASCII
lordofduct - Feb 14, 2005
 lordofduct Feb 14, 2005
Ok, im in one of these weird stupid trivia moods tonight. And I come across something in my head that I don't know and really want to know. Im not uber computer man here so it confuses me where this data would be saved.

situation:

when you save something using ASCII such as a txt file. Each ASCII symbol takes up 1 byte. So if I made a txt file that said.

How big am I

and then saved it as "sizequestion.txt" the file will be 12 bytes large. Since there are a total of 12 characters including spaces.

Well... where the hell is the file name saved? Why is it that even with a filename almost as large as all the text in the damn file itself still only take up that which is the size of all the ASCII symbols within the file?

 antime Feb 14, 2005
The filename is stored in the filesystem, not in the file itself.

 lordofduct Feb 14, 2005
Thats what I was thinking... makes sense, but I needed confirmation. Thanks bro.