Search for a charactter in a file

Why it is only three lines at most if the file is open.