combining text files

I have two fixed width txt files that contain the same information.  These are generated all the time and its a pain to combine both of them.  and there are 3 sometimes.

is there a way to automate this.   they are different routes with address info and account numbers etc... about 7 configured fields based on textual length.

Need the simplest way to combine these files by automation
I know a little powershell but not much if that is an option
jamesmetcalf74Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tel2Commented:
If you just want to concatenate the files, then you could do this kind of thing:
  type infile1.txt infile2.txt infile3.txt >outfile.txt
or even:
  type infile*.txt >outfile.txt

If that's not what you want, please clarify exactly what you mean by "combine".
0
jamesmetcalf74Author Commented:
I think that's exactly what I need.

could you write an actual example powershell for me with the following attributes

the files will be in
c:\files

with the names of    a.txt    b.txt    c.txt
0
Bill PrewCommented:
Do the files have a header line/row at the top, or just data?

~bp
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

jamesmetcalf74Author Commented:
just data
0
Bill PrewCommented:
Should be able to do:

Get-Content c:\files\a.txt, c:\files\b.txt, c:\files\c.txt | Set-Content c:\files\all.txt

~bp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jamesmetcalf74Author Commented:
worked like a charm
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.