Author Topic: Need help - Write to a file  (Read 7 times)

Tags:
  • All members
  • Posts: 69
  • Gender: Male
Need help - Write to a file
« 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 



  • All members
  • Posts: 69
  • Gender: Male
Re: Need help - Write to a file
« Reply #1 on: 14 May 2024, 12:52 »
Sorry, I click to post by mistake.... I missed to put my files for you, to see what is wrong.

Example:

Date                 MarketName                                                                                SelectionName     SP        Stake
5/14/2024      Horse Racing / GB / Wolverhampton 29th Apr/ 17:30 6f Nov Stks       Marry The Night   5.00     10.00

 

Please note, BetFair is seems to be currently OFFLINE