41
Troubleshooting / Need help - Write to a file
« Last post by joaofrancisco on 14 May 2024, 12:46 »Hello. I need some help in this trigger to write in a file some fields.
I managed to put this working but it won´t do what I want. First of all, it writes 2 files. One with the headers and the other with the fields that I want. But in this second file, it wrotes 2 line instead of 1. And in the name of the file I want the date but it returns another thing.
How can I fix this?
1- The file name with the date in the dd/mm/yyyy
2- 1 line instead of 2
3- 1 file only
Another thing, is that this trigger is to be used in a day in Horse Races. So, the idea is to have a file (.txt or .csv) that returns me the Headers and in each line the bet that was put in the markets in that day.
Example:
Date
I managed to put this working but it won´t do what I want. First of all, it writes 2 files. One with the headers and the other with the fields that I want. But in this second file, it wrotes 2 line instead of 1. And in the name of the file I want the date but it returns another thing.
How can I fix this?
1- The file name with the date in the dd/mm/yyyy
2- 1 line instead of 2
3- 1 file only
Another thing, is that this trigger is to be used in a day in Horse Races. So, the idea is to have a file (.txt or .csv) that returns me the Headers and in each line the bet that was put in the markets in that day.
Example:
Date