dimanche 4 décembre 2016

How do I make an if statement that searches through a text file?

I couldn't find a similar question, but if you can direct me to an answer thats already on the site that would be nice. I have a text file that has numbers and then a space with numbers next to it all on separate lines. ex.

1 100

2 99

3 98

4 97

how would i make it so if(inData != 4) it will sort through the numbers then print 97?

Aucun commentaire:

Enregistrer un commentaire