assuming the array tmp is a split of the file you opened and that you just want to overwrite it, then open the same (or other) file for output, join the array and print to file
this is after all substitutions are done, so that you only write to file once
VB Code:
Open myfile For Output As 1 Print #1, Join(tmp, vbNewLine) Close 1




Reply With Quote