I cannot find out why nothing is printed. Also I would like to know how can I check what is the file path which the class uses. Is there any C++ constant to access this information? Or how can I find what is the problem?
recently I used several codes to read using char type and fstream or iostream and they worked. So I think that problem is not with missing ability to read the file data. Maybe the path is incorrect. In this case it prints 0 bytes read.
Do you have idea why this program is so slow? Testing source file is less then 1kbyte. But it is slowly printed. Is it simply because it prints every single character just after a single character is read? I mean, probably if I would read whole file to a variable and then print it immediately from the variable, that should be faster, huh? http://paste.ofcode.org/dekmDHmYfJybaTEKTCa83t
You are right: it does not make any sense to read one character at a time if you are going to read a block of data anyway. Not only is that slower it is also more writing.
EDIT: Yea, and printing one character at a time does not make any sense either.