Issues with Serial Read and write

Works like a charm! Thanks!

I'm not sure I understand what the problem was though. The variable is entirely enclosed within the while loop, so why would a static variable be necessary? I know static variables are neccessary if I was using the void loop(){ as a loop, but why would it matter in a while loop?