locked
question about c programming RRS feed

  • Question

  • hi,
    I would like to know where I can post a question about C programming?
    My question:
    I would like to know why I don't see anything to the screen when I use fputs to display the contents of the line from the file:
    if ((filePtr = fopen("temp1.txt", "r")) == NULL) {
            printf("could not open file\n");
        }

        while( fgets(line, sizeof(line), filePtr) != NULL ) {
            fputs(line, stdout);
            //printf("%s\n", line);
       }
        fclose(filePtr);
    chuckdawit
    Tuesday, June 9, 2009 8:27 PM

Answers

  • For questions about functions in Visual C++ runtime library, use the Visual C++ general forum. For questions about Microsoft's C ++ language extension and the Visual C++ compiler , use the Visual C++ language forum.
    MSMVP VC++
    Tuesday, June 9, 2009 8:39 PM