web stats
Help with FileReader and writer - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-12-2019, 02:00 PM
Mits87 Mits87 is offline
OBX.2 Kenobi
Join Date: Nov 2016
Posts: 58
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

file read, file reader, file write

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 08:52 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation