User Profile

Collapse

Profile Sidebar

Collapse
geseeker
geseeker
Last Activity: Jul 10 '08, 10:27 AM
Joined: Jul 10 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • geseeker
    replied to problem with seekg(), a strange one
    in C
    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!
    See more | Go to post

    Leave a comment:


  • geseeker
    started a topic problem with seekg(), a strange one
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...