The link I gave you about 2 or 3 pages back now, more than once, shows how to put text into a buffer. You are choosing to ignore the methods shown there, which I put there to teach people how to do this, and sticking with your code, which we have said won't work. The top part of that page. Where it says "Buffering input".