well now
the task:
I want to open a directory, open the first file, [done] read some things, create a new name, [/done] copy the file to an other directory with a the new name and delete the old one. Then jump to the next file in the starting directory and do the same, then the next and so on...
the problem:
I neither know how to search for a random file (random name) in the directory, nor I know how to copy the file...
I've tried to copy with getc and putc, getw and putw but none worked because they couldn't read a byte in the source-file and gave me an EOF... so the solution should be able to copy ANY byte in the file, not only chars or something like that...
the system:
I've used DEV-CPP on a win95...
the final code should work with g++ on linux (mandrake AND FreeBSD if possible)
so long
5n4k3