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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 07-17-2007, 05:57 AM   #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.
overtone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 07-23-2007, 08:49 AM   #2 (permalink)
Registered User
 
Join Date: Jul 2007
Location: Aberdeen
Posts: 32
OS: Windows Vista Premium


Smile Re: using java to get data from notepad.

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.
little_cruden is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-23-2007, 09:32 AM   #3 (permalink)
Registered User
 
Join Date: Jul 2007
Posts: 7
OS: Vista


Re: using java to get data from notepad.

I'm so sorry to bother but yes. what you said is right. I want to be able to extract and input data into a notepad file.
overtone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-23-2007, 11:28 AM   #4 (permalink)
Registered User
 
Join Date: Jul 2007
Location: Aberdeen
Posts: 32
OS: Windows Vista Premium


Cool Re: using java to get data from notepad.

Cool, that's straight forward enough, I'll get some code done and post it soon for you.
little_cruden is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2007, 05:30 AM   #5 (permalink)
Registered User
 
Join Date: Jul 2007
Location: Aberdeen
Posts: 32
OS: Windows Vista Premium


Re: using java to get data from notepad.

Sorry for the delay in this one, jsut been a bit busy. hopefully have the code done by tomorrow night.
little_cruden is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-25-2007, 09:43 AM   #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
overtone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-07-2007, 12:55 AM   #7 (permalink)
Registered User
 
Join Date: Jul 2007
Location: Aberdeen
Posts: 32
OS: Windows Vista Premium


Arrow Re: using java to get data from notepad.

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.
little_cruden is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-07-2007, 06:36 AM   #8 (permalink)
Registered User
 
Join Date: Jul 2007
Posts: 7
OS: Vista


Re: using java to get data from notepad.

oh...it's ok. i'm just learning this out of interest. please take your time. no rush
overtone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 11:38 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85