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:: Add Line Numbers


fstream append by DELTRON
// This example opens text.txt and appends "glPushMatrix!" to the end of the file. - DELTRON 11/20/04

#pragma comment(linker, "/SUBSYSTEM:CONSOLE /ENTRY:mainCRTStartup")
#include <fstream>
using namespace std;

ofstream newhandle;

void main(int argc, char* argv[])
{
    ofstream myhandle;
    myhandle.open("test.txt", ios::app);                
    myhandle << "glPushMatrix!" << endl;
    myhandle.close();
}