http://www.linuxquestions.org – I have a text file with most lines that resemble: #1003 = 0.0139 ( X points to inches scale factor =1/72 ) #1004 = 0.0139 ( Y points to inches scale factor =1/72 ) M3 S15000 ( spindle cw at 15000rpm ) G4 P2 ( let spindle get to speed ) M7 ( mist coolant on ) G01 Z#1000 F#1001 G00 Z#1000 G00 X[#1003*300.133] Y[#1004*2343.29] G01 Z#1002 G01 X[#1003*300.188] Y[#1004*2343.29] G01 X[#1003*300.246] Y[#1004*2343.29] G01 X[#1003*300.246] Y[#1004*2343.29] G01 X[#1003*300.246] Y[#1004*2343.29] G01 X[#1003*301.453] Y[#1004*2343.29] G01 X[#1003*302.641] Y[#1004*2343.26] G01 X[#1003*303.855] Y[#1004*2343.22] G01 X[#1003*305.043] Y[#1004*2343.15] G01 X[#1003*306.227] Y[#1004*2343.1] What I need to do is read each line one at a time and IF the line starts with a "G0" it gets read otherwise it's skipped and in the line it reads eg:G01 X[#1003*300.188] Y[#1004*2343.29] would take 1003*300.188 (from the X) send it to LCDNumber55.display and 1004*2343.29 send it to LCDNumber56.display and then same for "Z" value to LCDNumber57.display same process for all three variables on each line even if "Z" is missing. If the readout is to fast can I put an adjustable time variable between each readline to slow it down? Thanks (HowTos)