Writing/Appending to File - 2024

Created at 29 Jan 2024, 13:41
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GI

Giorgi_1

Joined 23.06.2023

Writing/Appending to File - 2024
29 Jan 2024, 13:41


Hi Guys, 

Does anyone know if there's a newer/better way of appending a line to a csv file in 2024 than using the StreamWriter? I'm looking to create a csv that my cBot will add values to so i'm able to reference them at a later time. 

 

It will be a single column/list of values, and i'd like to be able to add/append the list via the cBot.

 

Many Thanks, 


@Giorgi_1
Replies

PanagiotisCharalampous
30 Jan 2024, 06:41

Hi there,

I use File.AppendAllText()

Best regards,

Panagiotis


@PanagiotisCharalampous