int main(int argc, char *argv[])
{
FILE* in;
FILE* out;
char dummy[3201];
char input[200];
char output[200];
strcpy(input, argv[1]);
strcpy(output,argv[2]);
if ((in = fopen(input,"r")) == NULL) {
printf("\nERROR: cannot find input file %s\n\n",input);
exit(1);
}
if ((out = fopen(output,"w")) == NULL) {
printf("\nERROR: cannot open output file %s\n\n",output);
exit(1);
}
fread (&dummy, 3200, 1, in);
qDebug() << text;
fprintf(out, "%s\n", dummy);
return 0;
}
int main(int argc, char *argv[])
{
FILE* in;
FILE* out;
char dummy[3201];
char input[200];
char output[200];
strcpy(input, argv[1]);
strcpy(output,argv[2]);
if ((in = fopen(input,"r")) == NULL) {
printf("\nERROR: cannot find input file %s\n\n",input);
exit(1);
}
if ((out = fopen(output,"w")) == NULL) {
printf("\nERROR: cannot open output file %s\n\n",output);
exit(1);
}
fread (&dummy, 3200, 1, in);
QString texto = QString::fromAscii(dummy);
qDebug() << text;
fprintf(out, "%s\n", dummy);
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks