datafile function

Write an ASCII data file to the working directory.