User Interface, Using A buffer with a module

There is no real difference between any read method (serial, file, ...). So I suggest that you read (possibly again) Serial Input Basics - updated; saves me a lot of typing ;). Example 2 will probably be a good option.