|
-
Dec 7th, 2006, 07:39 PM
#8
Thread Starter
Lively Member
Re: looping through text file
hey that work killer.
Can you guys help me with one more?
What if I have something like this below and the "N" and the line number that goes over 100000 lines.
What I'm looking to do is renumber at 99999 and start again at N1
%
O0000
M00
( Menu File: WCT.120 )
( 12-05-2006 19:00:41 )
N 1 G01G90G49G40G80G17
N 2 G91G28Z0
N 3 G91G28X0Y0A0.
N 4 T 12M06
N 5 G92X 119450 Y 151150 Z 229765 A- 80
N 6 G01G90Y 0 F 2000000
N 7 S 2700 M03
N 8 M08
N 9 G90A0.F 2000000
(Y Side 1 A0 XPART)
N 10 G90A-5.0F 2000000
N 11 G90A0.F 2000000
N 12 X 93729 Y 27602 F 2000000
N 13 Z 91660 F 2000000
N 14 Z 80319 F 200000
N 15 X 93729 Y 27276 F 55000
N 16 X 85928 Y 27755 F 55000
N 17 X 78124 Y 28192 F 55000
N 18 X 70318 Y 28588 F 55000
N 19 X 62510 Y 28942 F 55000
N 20 X 54700 Y 29254 F 55000
N 21 X 46888 Y 29525 F 55000
N 22 X 39076 Y 29754 F 55000
N 23 X 31262 Y 29941 F 55000
N 24 X 23447 Y 30087 F 55000
N 25 X 15631 Y 30191 F 55000
N 26 X 7816 Y 30254 F 55000
N 27 X 0 Y 30275 F 55000
N 28 X-7816 Y 30254 F 55000
N 29 X-15631 Y 30191 F 55000
N 30 X-23447 Y 30087 F 55000
N 31 X-31262 Y 29941 F 55000
N 32 X-39076 Y 29754 F 55000
N 33 X-46888 Y 29525 F 55000
N 34 X-54700 Y 29254 F 55000
N 35 X-62510 Y 28942
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|