saving files
"Ashish Chawla" <[email protected]> Fri, 13 Apr 2007 17:44:35 -0400
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0131979719==
Content-Type: multipart/alternative;
boundary="----=_Part_16094_32122121.1176500675744"
------=_Part_16094_32122121.1176500675744
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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;
}
------=_Part_16094_32122121.1176500675744
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi, <br><br>I am having trouble saving files using cgicc<br>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<br><br>here is my code for a test file
<br><br>#include <iostream><br>#include <fstream><br>#include <string><br>#include "cgicc/Cgicc.h"<br>#include "cgicc/CgiDefs.h"<br>#include "cgicc/HTTPHTMLHeader.h"<br>#include "cgicc/HTMLClasses.h"
<br>#include "stdio.h"<br><br><br>using namespace cgicc;<br>using namespace std;<br><br><br>int main(int argc, char* argv[])<br>{<br> <br> cout << HTTPHTMLHeader() << endl;<br> cout<< "<html><head></head><body>" <<endl;
<br> <br> cout<<"creating file test"<<endl; <br> ofstream Students("test.txt");<br> Students << "some" << "\n" << "name"<< "\n";
<br> <br> cout << "</body><html>" <<endl;<br> return 0;<br>}<br><br><br>
------=_Part_16094_32122121.1176500675744--
--===============0131979719==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
help-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cgicc
--===============0131979719==--