YO
Topics
26 Nov 2018, 02:58
1357
4
20 Sep 2018, 03:12
1359
5
01 Aug 2018, 05:16
1430
3
02 May 2018, 09:03
1872
2
06 Sep 2017, 10:43
2620
5
14 Mar 2017, 05:39
2044
3
Replies
yoannes
06 Sep 2017, 11:13
Hi,
Thanks for your answer. Below example of file
{"symbol":"EURUSD","dir":0,"eTime":"2017-09-06 08:01:17.36","cTime":"2017-09-06 08:01:21.16","ePrice":1.19339,"cPrice":1.19339,"volume":1000,"comm":-0.08,"swap":0.0,"net":-0.08,"comment":"","label":""} {"symbol":"EURUSD","dir":0,"eTime":"2017-09-06 08:01:27.90","cTime":"2017-09-06 08:01:30.31","ePrice":1.19352,"cPrice":1.19345,"volume":1000,"comm":-0.08,"swap":0.0,"net":-0.15,"comment":"","label":""}
Trying to read file:
string[] lines = System.IO.File.ReadAllLines(pathOrders); foreach (string line in lines) { Print(p); }
this is the error I get
06/09/2017 08:11:18.992 | Crashed in OnStart with FormatException: Input string was not in a correct format.
So i'm using this workaround to print my content:
string[] lines = System.IO.File.ReadAllLines(pathOrders); foreach (string line in lines) { string p = line.Replace("{", "{{"); p = p.Replace("}", "}}"); Print(p); }
But is there a better way of doing it?
@yoannes
yoannes
26 Nov 2018, 14:44
Hi Panagiotis,
But if the user link their account to another cTrader ID they will not be able to open their account right? or it will be linked to both IDs?
@yoannes