Quote Originally Posted by jimblumberg View Post
The crash problem is probably line 20. You probably should re-read your documentation for fgets() and be sure you provide the correct values for the parameters. Look carefully at buffer.

However your if statement is probably logically wrong as well. Watch out for all those negations when using the OR operator.

Jim
Thanks. I initialized the buffer to 200, and now it runs better:-) I need to fix one more thing.