Author Topic: Removing Lines from Text File  (Read 8355 times)

0 Members and 1 Guest are viewing this topic.

ziko30

  • Newt
  • Posts: 51
Re: Removing Lines from Text File
« Reply #30 on: January 14, 2010, 08:45:52 AM »
Thanks CAB ... writing to a new text file helps. I just wish I knew  which part of the code to modify if I needed to keep, say every 5th line, 6th line or some other number instead of the 4th.
Is there some kind of pattern you are looking for?

No, I am not looking for a pattern. These are grid coordinates and I needed to reduce the size of my files and spread out the data to speed up importing data into an AutoCAD vertical product. I keep the first line because it is the origin of my grid. Some of the files have about 1.5 million lines and others about 300 thousand lines. I just want about 30 thousand lines so I need to take out more lines in some files and less in others.
============== Acad Map 3D 2009================