Hi everyone

Hey i could use some help with a text file problem. I want to open a very large text (3000lines) file and write "G04 P1" after every "Z" line that is already in the file. Any help?

This is the start of the cnc gcode program

%
O0000
(PROGRAM NAME - EAD )
(DATE=DD-MM-YY - 16-06-06 TIME=HH:MM - 10:44 )
N100 G20
N102 G0 G17 G40 G49 G80 G90
N104 G91 G28 Z0.
N106 G91 G28 X0. Y0.
N108 G92 X0. ? Y0. ? Z0. ?
N110 G0 G90 G52 X2.847 Y0. S764 M3
N112 Z.25
N114 Z.1
N116 G1 Z0. F6.1
N118 X2.852 F12.2
N120 X2.857
N122 Z-.0002 #### Start below this line ######
N124 X2.862
N126 Z-.0004
N128 X2.867
N130 Z-.0007
N132 X2.872
N134 Z-.0011
N136 X2.8769
N138 Z-.0016
N140 X2.8819
N142 Z-.0022
N144 X2.8869


Thanks Reston