Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: FILE *fp[]; /* is this possible? */ Message-ID: <14592@smoke.brl.mil> Date: 27 Nov 90 18:37:58 GMT References: <1990Nov27.131327.21662@agate.berkeley.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <1990Nov27.131327.21662@agate.berkeley.edu> labb-4ac@e260-2a.berkeley.edu (superMan (the web dweller)) writes: >FILE *fp[256]; >for(i=0;i!=256;i++) fp[i]=fopen(file_name[i],"r+"); >but when I look at the value of fp[i] I get (nil) Well, why not? fopen() is entitled to fail. And it probably will if you try to have too many files open at the same time.