I am thinking of going further with c++, and studying file handling in depth. With c++ streams, you can open files of any type (I assume, though I have only worked with txt files yet). Now I am concerned with manipulating those files. Let's say there's a file x of format jpg, then what makes it different from a file of format gif? I don't know how to make.
Please, bear with my ignorance here, I don't even know which domain of computer science deals with this subject. I just want to study file manipulating/handling/accessing in depth. So far, I've read that any file type that is not a txt file is a binary file(feel free to correct me), now what makes one binary file jpg and other gif?
Say I want a c++ program to go through a jpg file and replace all the red pixels in it with blue one, how will I do that? I am not asking anybody to spoonfeed me or write tutorials for me, but guide me in the right direction, and let me know the limitations of the subject.
I've worked with allegro library and there were functions that dealt with images like
getPixel();
putPixel();
What I would want to do is access and manipulate PDFS and XML documents without using a third party library only using the c++ streams. This has got to be possible. Feel free to correct me wherever I stand wrong.