Help me to debug my code of Checking a ticket in orders file CSV - page 2

 
  1. Tran Ngoc Quang #: the function is can not get the value by the FileReadInteger() 

    “Doesn't work” is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
         How To Ask Questions The Smart Way. (2004)
              When asking about code
              Be precise and informative about your problem

  2. You haven't stated whether the file is ANSI or UNICODE

  3. You stated it is CSV but haven't supplied a separator.

  4. You need to read all fields.
              How to read a single cell from a CSV file? - Market Analysis - General - MQL5 programming forum #8 (2021.09.01)

  5. Post the file.


 
William Roeder #:
  1. “Doesn't work” is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
         How To Ask Questions The Smart Way. (2004)
              When asking about code
              Be precise and informative about your problem

  2. You haven't stated whether the file is ANSI or UNICODE

  3. You stated it is CSV but haven't supplied a separator.

  4. You need to read all fields.
              How to read a single cell from a CSV file? - Market Analysis - General - MQL5 programming forum #8 (2021.09.01)

  5. Post the file.


Hi Bro!

1. I've already described my error in original post. 

2. I use FILE_ANSI 

3. I've tried to use ';' as a seperator already but still the same.

4. Yes. i will.

5. The CSV file attached in original post already.

Please consider to help me bro.

Thanks!

 
Tran Ngoc Quang #: 2. I use FILE_ANSI 
  int handle = FileOpen(_filename,FILE_COMMON|FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_READ|FILE_CSV);

You did not tell MT!

 
William Roeder #:

You did not tell MT!

i've tried it before post here sir.

Result is the same...