Hello,
First of all I am sorry for my recent posts. I know I have sent a lot. But I couldnt think all questions at the same time.I hope you do not mind.
I was wondering ; for example I have a txt file which looks like :
Hello everyone 24 how are you
Nice...
When I use this line and take the whole line to my string :
>fgets(s,80,fpointer);
String becomes: Hello everyone 24 how are you
And it has a '\0' at the end. Not NULL . Why not NULL. What is the exact differnce between null and \0. I know \0 is a character. But still could not get it trully. Secondly , It adds a \n character at the end of the string. Why it does that ? DOes txt file has \n character at the end of each line?
--------------------------------------------
I have one more question :
I am still regardin the txt file I have mentioned above.
When I use :
>fscanf(fpointer,"%d",&integer);
I can not assign "24" to my integer. It is still like 248239239 . Why is that?
Thank you for all responses.