I want to know about the internal working of read() and write() functions in ifstream and ofstream respectively. I,although, have made many programs of these function but i want to get the details of internal processes.
What write(char*,ofstream::pos_type); of the ofstream class does is to put or write into a new file the content of the first argument. And the second one is to tell the function the number of characters(from 0--the beginning) to write into the new file.
read(char*,ofstream::pos_type); also does the same things(with the same parameters), but it belongs to ifstream and therefore copies the content of the opened file, to the first character. The second argument also serves the same purpose.
@Aceix, thanx for the explanation. But I knew this.All i want to know is about what happens in the compiler when we deploy these functions. and about the interaction of the physical file with compiler...