Dynamic data import / export

datenbank

simply more productive
Up to 100,000 records can be processed with the freeware version!
Welcome, Guest
Username: Password: Remember me
Welcome to the FlowHeater support forum.

Questions about using FlowHeater are answered here.
  • Page:
  • 1

TOPIC: append records to a text file

append records to a text file 5 years 1 month ago #2225

  • Gennaro
  • Gennaro's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
Hi,
I was wondering if ther is a way to append records (or to identify the first available empty row) of a text file.

In fact, i have to write the data into a flat text file with a structure " header detail trailer records" (each record wth own specific fileds) so, I am using 3 different flowheater definition, and then, i manually merge all the single text files. So,I would to automate this final step if it possible...

Please Log in or Create an account to join the conversation.

Re:append records to a text file 5 years 1 month ago #2226

  • FlowHeater-Team
  • FlowHeater-Team's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 263
The TextFile Adapter supports appending data to text files. You have only to activate the "Append to file" option in the TextFile Adapter Configurator (first tab). Currently if FlowHeater appends data to an existing file no header lines are written :-(

You can download here a quick modification. With this (beta) version it is possible to add data to existing text (CSV) files including the header (field names) information.

To use this you have to set the NEW TextFile Adapter property "AppendHeaderAlways" to TRUE. Hereby FlowHeater writes always the header (field names) to an existing file.

Please Log in or Create an account to join the conversation.

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
  • Page:
  • 1
Moderators: FlowHeater-Team
Time to create page: 0.079 seconds