Up
The problem is sloved
Bur.csv (11.8 KB)
i want to search from csv file by statment of IF
What does this mean? You can't "search" a csv file. You can read each record from a csv file, and determine whether or not the data in that record matches your criteria.
You need to read every record, and print, or not, data from that record.
When posting code for us to look at, do NOT comment out code. If it doesn't belong/is not executed, DELETE it.
Did you get my point ?
Yes. What I don't get is what the problem is.
I'm not familiar with parseInt but your example of data has 6 integers per line. Your code reads 10. Change your code so that it only reads S1, S2 , ... S6.
Pete
I do not want to show all the records in the file, I want to show only one record using the if condition and show me the records that agree the only requirement.
I hope you understand
No, I don't. As a first pass, you should show what you read from the SD card into every variable. When the correct stuff is read into every variable, and you can be bothered to post ALL of your code, then we can help you print only the data of interest.
Programming involves a lot of debugging. That, generally, involves printing a lot of stuff. Once the stuff consistently prints correctly, you can comment out the debug stuff. I really don't understand your, or any one else's, reluctance to print stuff. Or to post all of your code.
el_supremo:
I'm not familiar with parseInt but your example of data has 6 integers per line. Your code reads 10. Change your code so that it only reads S1, S2 , ... S6.Pete
Ok dear if you know another way to show only one record using the if condition.
Please tell me.
Thank you.
Thanks for every one who cooprate with me espacitaly el supremo because he only understood me thanks alot for you my dear