j
k
j a
j l
file_size = source_file.tellg(); printf("foo.txt size: %d\n", (int) file_size); //size is now 0!
Before you call tellg, call seekg (0, ios::end)
Back to the thread
Back to the list