move the position of file pointer in character-based and get string.