Quote Originally Posted by tabstop View Post
Strip off the end-of-line character (or whatever other special character it is) from the read-in input.
Hey tabstop,

I knew it, while how can I do it?

I allocated the memory before using the string pointer, i.e. _Name = (char*) malloc( sizeof(char) ) since the content in the txt file is not specific, e.g. they can be either "NAME_ID" or "THERE IS A DOG" or whatever... So how can I remove the "square" in the string pointer?

Thanks in advance,

Qing