Page 1 of 1

Folder to read Text File

Posted: Tue Aug 06, 2002 8:57 pm
by endyl13
Hi,
How can I use Folder Stage to read Text File data sources? I put some TXT file on a folder, all of them in the same format but come from different systems.
I've tried to use it and connect it to Seq File Stage, but it didn't work.
I looked at the XML Samples, seem like the Folder Stage only worked to read XML files, is that true?

Any help is really appreaciated...

Thanks in advance

Endy

Regards

ND

Posted: Wed Aug 07, 2002 8:02 pm
by cwong
Endy,

Folder Stage is meant to support multiple files to/from XML Reader and Writer.
For text file, if you have multiple text files to send into a sequential stage, you may use an OS command to combine them into one big file and then use the big file in the seq stage, i.e. cat /inDir/infiles* > /tmpDir/inBigfile.txt

Hope this help ...