Hello there everyone. I'm a new user to VB although I am fairly conversant with QBasic (lol i know..a long time ago). I used QBasic for printer operations and have never really got to grips with importing, manipulating and outputing files.

I would like to import a file (usually opened with notepad), make adjustments, and ooutput the new file.

As a cnc programmer, I would like to renumber my program file and also manipulate numbers.

The format is as follows...(example only)

N120 G0 X:123.123 Y:123.123 A:-123.123 etc etc

To renumber, as far as I understand, I would need to import the file, find the first line (N) make it 10, then find the next line and delete the number there, and rewrite to N+10 and repeat for all lines.

Also, I would like to be able to recalculate axis positions....for exaple ...add 180 to all A axis values.

Any advice on where to start would be greatly appreciated.