wow, it works when i open the file in binary mode, thanks!
i spent a whole day trying to figure out the reason. you've been really helpful!
User Profile
Collapse
-
problem with seekg(), a strange one
Hi, i want to move the file pointer to the last 128th byte, so i can read the ID3V1 tag in an mp3 file. Here's my code to test the result of moving the file pointer:
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream fin("tagTest.mp 3");
char c;
fin.seekg(-128, ios_base::end);
cout...
No activity results to display
Show More
Leave a comment: