Jump to content

» «

Extract Specific Characters from Text File

2 replies to this topic
  • dills

    Work it Carlton!

  • $outh $ide Hoodz
  • Joined: 22 Jan 2005


Posted 30 March 2012 - 09:14 PM

I will try and explain this as best I can so please bare with me.

I have several hundred text files and am looking to extract a specific piece of information from each file. The information is contained in the exact same position (line and column) in each text file, but the contents of the information differs.

The files are named sequentially, starting at 001.txt up to something like 356.txt and the information in each file that I would like is contained at line 637, column 75 and ends at line 637, column 205.

What I am after is some sort of batch file where I can drag and drop each text file, preferably multiple at a time, onto the batch file and it extracts the specific piece of infomration I require and saves each extract into its own text file named, for example, 001_output.txt.

Is this possible?

  • na89340qv0n34b09q340

  • Joined: 11 Jun 2010
  • Saint-Martin


Posted 30 March 2012 - 11:41 PM

Is this what you're looking to do? If so, it's answered there.

  • dills

    Work it Carlton!

  • $outh $ide Hoodz
  • Joined: 22 Jan 2005


Posted 31 March 2012 - 08:09 AM

That does look to be what I am after, but I am a complete novice at anything to do with programming and so have no idea what parts I need to change in order for it to fit my purposes. I'm hoping someone here that understands coding can edit that script to fit my needs.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users