Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Modifying lines in text file

Avatar of janime
janime asked on
Scripting LanguagesVB Script
43 Comments1 Solution294 ViewsLast Modified:

in my text file (it's rather big) I 'd like to do some modifications based on certain conditions.
I have 2 scenarios (I need a simple script for each one separately):
1) delete certain character (let's say "Tab character" or number "9") from a line if length of the line is less than 200 and save the output  into a new text file.
2) if the length of the line is less than 200 append the next following line to it (again save the output into a new text file)
I'd prefer using VB script or something which would work with huge text files.

Avatar of WMIF
This problem has been solved!
Unlock 1 Answer and 43 Comments.
See Answers