4 Attachment(s)
Read input, read file, find match, and output... URGENT HELP!
Hello there!
I am working on this final assignment for my IT class, and I have to provide a Query system to a banking program. I have completed the general Query which reads a .txt file and displays the entire clients list for the bank... The code is here:
Attachment 1141Attachment 1142Attachment 1143Attachment 1144
I need to also create a Single Query that will require the user to input a particular Bank ID (we decided xxx where 0<xxx<999) into a pop-up textbox. The idea is that the program will:
1) read the input xxx value and parse it (String, maybe?).
2) parse the clients.txt (attached, so you can see the structure and how we tokenized it so it can be displayed as a table) file.
3) match the entered xxx value to the text line containing the xxx account value.
4) output that particular account's line from the clients.txt into a one-row, 7-column table.
I was thinking of maybe using a substring and indexOf but then I got fuzzy...@-)
I need urgent help with this, as this is due in about 12 hours and I have 2 different projects to work on at the moment. I'm exhausted and can't really think straight, else I would have probably figured this out somehow...@-)
Any help will be colossally appreciated!
Cheers,
Dan
Re: Read input, read file, find match, and output... URGENT HELP!
Hi,
Actually, you wrote the solution. But if the value xxx goes from 0 to 999, that's clear that the data type is int, and is easy to find the match among numbers. Then, you have to make a loop in order to take each line in the clients.txt, make a tokenizer treatment in order to have the specific Bank Id, and then just check if it match with the xxx Bank Id that the user already write.
Hope that it be useful.
__________________
Oscar Gómez
Engineer at PSL
PSL S.A. - CMMi 5 nearshore software development and IT outsourcing from Latin America - Home
Re: Read input, read file, find match, and output... URGENT HELP!
I honestly don't even see it, and I've been trying now for a while. I need this done, fast, I barely got an extension from my professor.
Can you provide a bit more help?
Re: Read input, read file, find match, and output... URGENT HELP!
Can you post the code with the problem so it can be seen here?