Good work DuDu ! , now its time for nit picking !
I mean, more like suggestions for improvements
1. streamOut & streamIn could be NULL (what happens if file does not exist ?, null file pointers are returned with fopen & program dies)
2. better be using feof instead of bytesread to stop the while loop..(end of file & error flags)
3. Declare variables closer to their usage (which is more c++, unlike c, where variables are generally declared before code execution blocks)
1. i made the program in order to move the log file where ever i want, so the file exist.
2. you are right.
3. im studying C for the moment. C++ is only next year.
if i get used to put all the variables near their usage i will get a big 0 at the exam
I now demand a share of any income you get from this program ...
i just unlike/hate the fact that the user must put the file's path himself via a MS-DOS window.. (because its how it launchs to right now)
It hurts me to type all the files paths (source and destination) .. thats why i prefered to keep these variables out of the use for the User.
anyways i would love to keep that idea (i mean the one that the user put the filepath) , IF and only IF, there would be a basic interface (?) for the user. like a small popup which would ask for the filename with a "Search" button which permits to search the file name manually on the Computer/hard disk.
i will "nit pick" (to take your expression
) an old program that Balonik made (PSMsgBell if you know)
he put an interface in it, i will try to master his program ,at least understand it XD , before trying to modify mine.
Note :thread about Balonik's program:
http://hydlaa.com/smf/index.php?topic=25473.0Thanks Funki