![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2007
Posts: 7
OS: Vista
|
using java to get data from notepad.
Hi, I was wondering I could get help in that topic.
I wanted to use java retrieve data from a table but it seems too complex to use OCDB to work. So I wanted to try getting the data from a notepad (.txt) file. The followings are the data I had to get. I want to type the entries into a notepad so I can use a java application to retrieve it. (They are taken from my database, supposingly to be shown in a table form.) Catalogue No. | Movie Title | Category | Cost ($) C0001 | The OH in Ohio | Comedy | 10 C0002 | Bring It On | Comedy | 10 I would want to key in, for e.g. 'Bring It' and the program should be get the - data, catalogue No., the whole movie title, category and cost. I know I can't use a class file since many variables can be in there. I need help in both the java application codings and the notepad file. Could someone help me out? I would appreciate guidelines and java codings. Thank you. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
Join Date: Jul 2007
Location: Aberdeen
Posts: 32
OS: Windows Vista Premium
|
Before I start ramblign off some code, I jsut want to make sure I have the right idea...
You want to read in the info from a notepad file, put it into an array or list of some sort and then be able to input a search that will take the text and display a full record of any film that contaisn your search criteria? Am I right? If so then I should manage to help you there. |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Jul 2007
Posts: 7
OS: Vista
|
Re: using java to get data from notepad.
That is very nice of you to help me, so I won't mind delays since this is a part of programming which I'm learning. And further more, if there is no need to rush this learning, the more you should take your time so I won't feel so bad.
Sorry for my poor english |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Jul 2007
Location: Aberdeen
Posts: 32
OS: Windows Vista Premium
|
Oh shoot. I forgot about this.
![]() My apologies mate. I'll get to work in it soon. Actually I should have some code archived somewhere I can just copy and then explain....mmm.... wil have to take a look when I get home from work. |
|
|
|
![]() |
| Thread Tools | |
|
|