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
Post a Comment