GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


why by statler
1
 
#include <stdio.h>
#include "stdafx.h"

int main(int argc, char* argv[])
{
    FILE *fp;

    char* filename = "testfile.txt";
    printf("file is %s\n", filename);

    if (fp = fopen(filename, "rb"))
    {
        printf("Could not open file!");
        return -1;
    }

    fclose(fp);
    return 0;
}