problem on reading from a binary file ? - page 2

 
RaptorUK:
Have a read of this thread: https://www.mql5.com/en/forum/122462


Ok, this guy had exacty the same problem as me. What i need to use is something like this.

  int OrderTickets[];
   int ctTickets = 0;
   for (int i = 0; i < OrdersTotal(); i++) {
      if (OrderSelect(i, SELECT_BY_POS)) {
         ctTickets++;
         ArrayResize(OrderTickets, ctTickets);
         OrderTickets[ctTickets - 1] = OrderTicket();
      }
   }

Array and arrayResize is new to me. How do i implement this into my function above. Thanks alot for your responces by the way.