Skip to content

Instantly share code, notes, and snippets.

@kuyseng
Created May 26, 2012 04:00
Show Gist options
  • Save kuyseng/2792114 to your computer and use it in GitHub Desktop.
Save kuyseng/2792114 to your computer and use it in GitHub Desktop.
javascript: indesign combine text files into one
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