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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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".
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
Bill PrewIT / Software Engineering ConsultantCommented:
Do the files have a header line/row at the top, or just data?

~bp
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

jamesmetcalf74Author Commented:
just data
Bill PrewIT / Software Engineering ConsultantCommented:
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

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
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.