bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help required for reading multiple files in bison


From: Akim Demaille
Subject: Re: help required for reading multiple files in bison
Date: 24 Sep 2002 14:36:26 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

| sir,
| i have to open 1400 files in a folder. one at a time. 
| 
| i used the following
| 
| fp=fopen("filename","r");
| yyin=fp;
| ....
| ....
| yyparse();
| fclose(fp)
| 
| in a loop. this worked fine till it opened the first 2 files. but when it 
tried to open  the thir file it gave me an segmentation fault.
| please help me out.

Try this:

| fp=fopen("filename","r");
| yyrestart (fp);
| ....
| ....
| yyparse();
| fclose(fp)

and please, keep us informed.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]