I have some csv files which have varying contents. I want to simply disregard the schema and write the lines of text into one file. Which transformers or technique could I use to achieve this?
-
1I have done this in windows and mac on the command line - very easy.wikihow.com/Merge-Text-(.Txt)-Files-in-Command-Prompt– SethinacanCommented Feb 26, 2016 at 14:07
-
I would like to keep it within my fme model.– Robert BuckleyCommented Feb 26, 2016 at 17:54
-
You can merge csv here: [merge csv files](merge-csv.com )– user2133694Commented Jan 9, 2017 at 14:13
-
Please read the question again carefully. Your answer does not answer the original question. OP wants to do this with FME not an online resource.– DavidPostillCommented Jan 9, 2017 at 14:22
-
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review– MaryBethCommented Jan 9, 2017 at 14:45
1 Answer
If you want to treat the CSV files as just being text files, then use a text reader
to read them (simplest to just use a single dynamic version rather than separate feature readers). The files will be read in and treated just as though they're a normal text file; schema will be ignored.
You can write them out into one single file using a single text writer
. The entire workspace should only consist of those two transformers (one dynamic text reader, one text writer).