i/o streams reading each character for analizise?
i was wondering if anyone can explain or give me sample code for the following...
id like to get user input for four numbers, each number has its own JTextfield....( i have managed this) but id like to test to see if the numbers are already in a text file and if so to relay a msg back saying security code in use....(or of sort) but if the code isnt there id like it to add it to the text file.......so is this possible, for instance if the "data.txt" file was somethng like this
12,99,05,23
22,44,11,01
and the user enters say 12,99,05,23
how would i be able to check the first digit 12 with the file then 99 and so on until its the end of file...
my basic or practise application is done using the swing api so i cant use system.out.println for the return response, however i have made a very good error class which works fine on reading files....im just stuck with verifying the numbers then i read something about using a delimiter file or comma delimiter and then completely lost the plot...
somehow this comma delimiter thingo has to fit into it to read each digit...from comma to comma but how does it all go together...
any help or guidence will be appreicated....
regard alex

