help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-cgicc] saving files


From: Ashish Chawla
Subject: [help-cgicc] saving files
Date: Fri, 13 Apr 2007 21:49:08 -0000

Hi,

I am having trouble saving files using cgicc
when i run the file through the terminal, it creates the files, but when i run through a web interface, it does everything except creating the file

here is my code for a test file

#include <iostream>
#include <fstream>
#include <string>
#include "cgicc/Cgicc.h"
#include "cgicc/CgiDefs.h"
#include "cgicc/HTTPHTMLHeader.h"
#include "cgicc/HTMLClasses.h"
#include "stdio.h"


using namespace cgicc;
using namespace std;


int main(int argc, char* argv[])
{
   
    cout << HTTPHTMLHeader() << endl;
    cout<< "<html><head></head><body>" <<endl;
   
    cout<<"creating file test"<<endl;   
    ofstream Students("test.txt");
        Students << "some" << "\n" << "name"<< "\n";
 
    cout << "</body><html>" <<endl;
    return 0;
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]