Problem with file read New comment [Deleted] 2012.06.06 13:56 Hi all, can u please help me with my problem? I read all lines from csv file to array. Problem is that when i read the last line all array lines change with this line. void ReadFile() { int cmd = 0; string str = ""; int handle=FileOpen("TradeCopy.csv",FILE_READ|FILE_CSV); if (handle>0) { while(FileIsEnding(handle)==false) { str = FileReadString(handle); if (str!="") { lines[cmd] = str; cmd ++; } } FileClose(handle); } else Print("Chyba pri otvarani : ",GetLastError()); } Can somebody please help me with this problem? Thank a lot. Indicators with alerts/signal How to read csv file line by line ? Skip line when reading csv file... William Roeder 2012.06.06 15:05 #1 How big is lines[]. You're not testing for max length. [Deleted] 2012.06.06 15:46 #2 Hi friends, i forgot used ArrayResize()...:( Thanks for posts New comment
Hi all,
can u please help me with my problem?
I read all lines from csv file to array.
Problem is that when i read the last line all array lines change with this line.
Can somebody please help me with this problem?
Thank a lot.