|
| ragnamanga (9) | |
| hello. i'm having trouble with finding a specific number in text file. my problem is: create a text file that contain numbers in 3 lines. each lines consist of 5 numbers. create a program that finds the first number in the first column and load the rest of the 5 numbers in the program. here's an example: in text.txt 1001 27 12 17 33 1002 22 12 312 22 1003 873 1222 22 1 the program should read 1001 and then saves "1001, 27, 12, 17, 33" to variables inside the program. any ideas? your reply is much appreciated. | |
Last edited on | |
| writetonsharma (832) | |
| what code you have currently? | |
| ragnamanga (9) | |||
| i didn't really bring my copy of my code. i use internet cafe to access the web. but my logic on the code was..
i'm not sure if what i remember now is the same on my code on my computer. but it doesn't work. any ideas? | |||
Last edited on | |||
| ragnamanga (9) | |||||
the contents of ITEM_DB.txt is:
| |||||
Last edited on | |||||
This topic is archived - New replies not allowed.
