web stats
Mirth Community - View Single Post - Help with FileReader and writer
View Single Post
  #1  
Old 04-12-2019, 02:00 PM
Mits87 Mits87 is offline
OBX.2 Kenobi
 
Join Date: Nov 2016
Posts: 55
Mits87 is on a distinguished road
Default Help with FileReader and writer

I am receiving a text file. The first three lines of the file are patient information and after that, it contains the patient test result which is tab delimited (/t). I need to save the patient information from the top and then delete the first 3 lines and save the file as is.

I created one file reader and was able to store the first three line values in a variable for later use but it's not deleting the line 2. In addition to that, it's also removing /n after each line and in the output file, it saves the entire file as a single line instead of keeping the file as is. I need the file as is in the tab-delimited format after deleting the top three lines.

Can someone point out my mistake? I did try to play around with set data type options under summery but no luck so far.

I am using 3.7.0. Please see the attached channel and the sample test file.
Attached Files
File Type: xml FileReader.xml (33.6 KB, 5 views)
File Type: txt new 1.txt (166 Bytes, 10 views)
Reply With Quote