Hi and welcome to LinuxQuestions!
Actually I don't get your questions. What do you mean by "after it had read the text file"? The dos2unix command actually modify the input file by default, but if you want to preserve the original file and create a new copy in unix format, you can do
Code:
dos2unix -n infile outfile
Please show us your code to clarify your issue. Thanks.