Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to split single text file into multiple files?

Status
Not open for further replies.

pixiesfb

Programmer
Apr 27, 2001
62
US
Hi,

I have 50 text file links on a page, (one for each state). Currently, the user must right-click and 'Save Target As' fifty times in order to save each file to his or her computer.

Is there a way I could consolidate all info into one file, have the user download that, then somehow give the user the ability to (somewhat easily) split the file into fifty text files?

I would think I would need some kind of delimiter in the single file to indicate where to break for each state.

Or perhaps there is a better solution?


Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top