Hello,
All computer files are collections of 1s and 0s at the lowest level. Files can have different content, i.e. some files contain text, some images, etc., and can be opened by different types of application programs.
html files, txt files, json files, xml files, etc. are all examples of text files. How are they different from each other? What do they have in common?
I guess they are similar to each other in that they can be opened with any text editors and the output is understandable. A text editor is able to interpret the bits in those files using ASCII or UTF decoding and render them as text. A html file is a bunch of characters (the tags and the text between them). A browser can somehow read a html text file and also give meaning to the tags in it rendering the html file as more than text.
Even a .jpg file (a bitmap) can be opened with a text editor but the content is not rendered correctly. An image processing application can render the image though. Does that mean that image processing applications do not support ASCII/UTF and uses a different decoding strategy to interpret and display the bits in image files?
Thanks!
All computer files are collections of 1s and 0s at the lowest level. Files can have different content, i.e. some files contain text, some images, etc., and can be opened by different types of application programs.
html files, txt files, json files, xml files, etc. are all examples of text files. How are they different from each other? What do they have in common?
I guess they are similar to each other in that they can be opened with any text editors and the output is understandable. A text editor is able to interpret the bits in those files using ASCII or UTF decoding and render them as text. A html file is a bunch of characters (the tags and the text between them). A browser can somehow read a html text file and also give meaning to the tags in it rendering the html file as more than text.
Even a .jpg file (a bitmap) can be opened with a text editor but the content is not rendered correctly. An image processing application can render the image though. Does that mean that image processing applications do not support ASCII/UTF and uses a different decoding strategy to interpret and display the bits in image files?
Thanks!