Hi Henry!
Here it is...
Unluckily now I'm not in laboratory and I don't have with me the last version of the vi.
This is the previous one which has a little error inside the while loop: every time a buffer is read a "carriage return" is appended.
If you want to correct this vi simply delete this last "carriage return", else you have to patiently wait my last version!...Bye!