I have a very simple bit of python code that reads in a pipe delimited text file and outputs a csv file. This little script sits at the front end of a modelbuilder model and is a precondition for running a TableToTable process. What I need is for a user who runs the model to be able to set the input file name and path and also set the output file name and path. Any help would be appreciated.output = open('gnis.csv', "a")
for line in open('GNIS.txt'):
line=line.replace("|", ",")
output.write(line)
output.close()