...: What is the difference between using operators
>> or using
read() methods ?
I suppose for binary writing/reading you should use
read, but Is there any difference for text/ASCII ?
Best How To :
read do not understand anything about the data being printed - for them all there is are bytes.
>> on the other hand understand what you print and can be overloaded only for a given datatype. As a consequence read and write and generally faster - no complex logic happens, we simply print bytes to the stream.