Forums Cache
Copyright MonkeyJob Systems 2005
All rights reserved

Home FAQ Current Forums Contact
 Search For Data
   

Can I split file contents line by line into multiple files?

Related Topics:
Search and replace on file contents

Author Message
dex Hi, thanks for the great product.

Is it possible to split file contents per line into different sequencial files ?

Thanks

monkeyjob
Site Admin


Joined: 13 Jan 2005
Posts: 25
Location: United Kingdom
Hi,
no, FileMonkey cannot do this for you but you may be able to use the "Replace" feature to convert your file into a batch file that will do this for you.

For example if you have a lines:


sdklfsjdf
sdssjdf
sdkdf
sdklfssdf



you can convert this to:




echo off
cls
echo sdklfsjdf >> c:\dest1.txt
echo sdssjdf >> c:\dest2.txt
echo sdkdf >> c:\dest3.txt
echo sdklfssdf >> c:\dest4.txt
cls
exit



you can do this using the dos command:

find /v /n "" c:\sourcefile.txt>>c:\batchfile.bat

and then use the FileMonkey replace feature to convert the file batchfile.bat into a batch file which you would then double click to run.

The process is a bit tricky if you've never done it before. You can send us your text file and we will have it ready for you sometime tomorrow.

Regards,
monkeyjob.



  | About Us | Privacy | Terms | Affiliates | Partners | Copyright ©2003 MonkeyJob Systems All Rights Reserved |