View Single Post
Old Mar 29th, 2005, 11:16 AM   #9
spydoor
Programmer
 
Join Date: Feb 2005
Posts: 64
Rep Power: 4 spydoor is on a distinguished road
is it possibly somewhere else in your code.
This simple example worked for me on 2 different compilers

#include <stdio.h>

int main()
{

    FILE *ME;
    char s[1000];

    ME = fopen("file.c", "r");

    FILE *displayarray[5];

    displayarray[0] = ME;

    while (fgets(s,1000 , displayarray[0])!=NULL)
        printf("%s",s);
    fclose(displayarray[0]);

    return 0;
}
spydoor is offline   Reply With Quote