Using ifstream to extract text from a file line by line.


  • I have not so far doen very much with file operations, and I'm wondering how I would go about extracting the text from a file line by line. So far I have worked out that I will probabley need:


    ifstream file(fileName);




    // code for extracting line by line.



    The text I extract will be split processed and then filed into a vector for use, and the only thing I'm really unsure of here is how to acctually get the text from the file. Any help would be great. Smile

    Saturday, May 19, 2007 7:36 AM