how to end serial.available?

hi

it's my first time i am writting to this forum and i hope to post in the right section or i am sorry if i write for topic that have mentioned in the past and i didn't find it. i. i have accomplished to write a word to the serial monitor and show it to the LCD, after a search from the ascii code with using the commands Serial.available() and Serial.read(). But every time in order to go to the next letter of the word the program searches the letters from the begining until the new one! So i would like a way to end this search, to search only for the letter of the word i push every time on my keyboard. Of course there is the command Serial.end() but when i used it it didn't solve my problem!!Any suggestions are welcomed!!

Thank you in advance!!

Any suggestions are welcomed!!

I suggest you post some code.

But every time in order to go to the next letter of the word the program searches the letters from the begining until the new one!

Searches what letters from the beginning of what?

Serial.available() tells you how many characters there are to read. If you want Serial.available() to return 0, read all the data from the buffer, after you quit sending data.