Link to home
Start Free TrialLog in
Avatar of Thomas Adams
Thomas Adams

asked on

Sorting a document to multiple documents

I am given a document that has 72 pages worth of employees, salaries, and jobs. I know how to scan it in and I am putting everyone that works for the same company together. This is in the 4 word in each sentence. I am using if statements to see if it equals "police" that it will write to a file police. I am stuck on how to write the array back to a string and then put it in a file that is designated for each company.

How do I reprint the array I checked as the string it started as?
How do I get it to print to a document called "police" or "Engineer"?

File does not have to be created before hand supposedly.

I need a progra to sort and put them in different files with what company they are workig for.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Your question doesn't have enough specific detail to be answered. What is the 'array'? What does the file look like? What kind of file is it? ..
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.