c - fopen does not deal with more than 60 files at the same time -


i need have more 60 text files opened @ same time in c program. however, seems fopen not able handle more 60 files simultaneously. programming in windows environment.

i use following fopen statement:

fopen(filename.c_str(),"wt"); 

where filename path of txt file, name changes inside loop along 100 files. know trick make work? or alternative?

if issue bash shell command:

ulimit -n 

you'll see 60 limit open file handles. can change with:

ulimit -n 256 

note: there're soft (-s) , hard (-h) limits can see -sn , -hn, can change soft limit hard limit.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -