|I have several text files that are too large to manipulate via Word and want to break them into smaller chunks. I've tried doing it manually by drag-and-drop or using "cut" in Notebad or Word and copying the clipboard into a new document, but it's painfully slow and tricky -- one twitch of the mouse and all the highlighting can disappear and I don't have the patience.|
I have very rudimentary knowledge of DOS, can do DIR and CD and COPY but don't see a way to copy just a specific number of lines. I can combine a lot of small datasets with a COPY but can't do the reverse.
I also am trying to teach myself Python. Everything I've worked with so far involves very defined input datasets so I can break every line read into its component data fields, and manipulate those fields. I cannot figure out how to read a text file that can have anything at all in each line
and be able to test the input for a plus sign in the first position.
Each useful segment of the text file begins with a line like this: +------------------------------------------------ where the visually solid line is a string of hyphens, followed by all the information in an email. I want to put 200 of those emails into each file I'm going to work with.
It ought to be simple, but both Python textbooks I'm trying to use are Greek to me. I was a mainframe programmer for 30 years and I've learned a lot of different software, but none of it is available online for free, and although every young programmer I've encountered says Python is elegant and extremely easy to learn, brains must have undergone a redesign since I had mine installed.