Hi All,

I need some real help. My programming experience is about 20 hour’s total. I am using visual basic express 2005. I want to create an application which opens a com port and references the received data to a text file or some other user editable file. I have created the application and the com port opens and I can see the data. I have then used some "if then" statements to check for certain bytes and display a message. This works; however for three days I have tried to understand how to reference a database or text file and out put the results: e.g. I receive T1380000A0005 on my serial line. I want to split the serial data as T138000 and 0005 "removing the 0A" then I want to reference each split in a files similar to the below:-

#T138000#Button Press 1#
#T138080#Button Release 1#

#0005#Bus 0#Unit ID 5#
#0004#Bus 0#Unit ID 4#

Then in a text box I want to output the result as:-

Button 1 Pressed on Unit 5 Bus 0

I have racked my brains on this with no luck, and remember it’s all Chinese to me, so any real world examples would be much appreciated.

Thanks in advance

Mike