Created
          May 26, 2012 04:00 
        
      - 
      
- 
        Save kuyseng/2792114 to your computer and use it in GitHub Desktop. 
    javascript: indesign combine text files into one
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function combine_text_file ( files, path, new_name ) { | |
| if( files.length>0 ) { | |
| var all_string = ""; | |
| for (var i = 0, len = files.length; i < len; i++) { | |
| all_string += read_text_file( files[i] ); | |
| }; | |
| return write_text_file( all_string, path, new_name ); // return file | |
| }; | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment