GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


File I/O by rHytHm
1
 
{
    
    char next;
    int x=1;
    
    do
    {
        cout << x << \":\" << setw(3); 
        ++x;
        messy_file.get(next);
        cout << next << endl;

        
        
        
    }
    while (next != \'\\n\');
    
    cout << \"That is it. \";
    
}