Mail Archives: djgpp/1998/01/02/07:40:23
Sorry, I guess I was a little bit short in the last mail. I'll try to
express myself better this time, it's just that my english is'nt to
good.
OK, first I wrote this program that reads one file, using the
code:'file_pointer = fopen(arg_pointers[1],"rb");'
But then I found out I wanted my program to be able to read all files of
a given type, like all .htm files, or all .txt files.
So I found the functions findfirst and findnext, aha, perfect. So I
wrote this into my program->'status = findfirst(search_wild,
fileinfo,FA_HIDDEN);'
Status I just to determine whenthere's no more files.
The problem is, when I wrote this into my program, just in front of the
fopen funtion, fopen suddenly would.nt work anymore, it just crashes
when it gets there. Why???
I hope I was a little bit clearer this time.
lanton AT c2i DOT net
- Raw text -