Re: can't read sequential files

2007-10-31 Thread zirtik
NULL or not, I always get a segmentation fault. Can this be some kind of an optimization problem? I don't know why it happens. Thank you for the comments. zirtik wrote: > > Hi, I'm using cygwin and windows XP together with Eclipse IDE and CDT. I > have a following piece o

can't read sequential files

2007-10-30 Thread zirtik
Hi, I'm using cygwin and windows XP together with Eclipse IDE and CDT. I have a following piece of code: int i; fp = fopen ("phi.txt","r"); for( i = 0; i < 51; i++ ) { fscanf(fp, "%d\n", &original_phi[i]); } ... and when I try to