Hi,
I need some help to convert global variables into local variables. How the hell do i do that when im operating with .txt files.
The following is a part of my program.
Thanks
Code:#define infilename "input.txt" #define outfilename "output.txt" int main(void) { FILE *infile, *outfile; if (!(infile = fopen(infilename, "r")) || !(outfile = fopen(outfilename, "w"))) { puts("Fejl: kan ej åbne filer\n"); exit(EXIT_FAILURE); } CreatePwList(infile, outfile); fclose(infile); fclose(outfile); return 1; }



LinkBack URL
About LinkBacks



