User Profile

Collapse

Profile Sidebar

Collapse
Leonne
Leonne
Last Activity: Dec 22 '11, 04:24 PM
Joined: Dec 17 '11
Location: I'm a college student. :(
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Leonne
    replied to fstream.read() Not Reading Anything At All.
    in C
    I wasn't initializing the buffer.
    Code:
    char* somebuf = new char[11]; //Fixes it.
    See more | Go to post

    Leave a comment:


  • Leonne
    started a topic fstream.read() Not Reading Anything At All.
    in C

    fstream.read() Not Reading Anything At All.

    Hi guys.
    I'm trying to read the first line of an MP3 file (I edited this mp3 file to contain the text "I'm an MP3" right at the beginning of the file).

    This is what I'm trying to do:

    Code:
    #include <iostream>
    #include <string>
    #include <fstream>
    using namespace std;
    
    int main()
    {
        fstream mp3;
        mp3.open("05 Imagine.mp3",
    ...
    See more | Go to post
No activity results to display
Show More
Working...