All pastes #609368 Raw Edit

Untitled

public cpp v1 · immutable
·published 2007-07-08 21:07 UTC
rendered paste body
int write_file(char filename, int data) {        fstream File;    char* filestr;    filestr = calloc(2, char);    filestr[0] = filename;    File.open(filestr,ios::out);    File << data;    File.close();        //printf("Debug: filname: %d",filename);        return 0;        }