Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to read an ARPA file in java

839722Feb 14 2011 — edited Feb 15 2011
Hi
Im new in java and dont know many thing about it, I want to know how can read an ARPA file in java.
pleas describ it step bye step and esy to understand.

Edited by: 836719 on Feb 14, 2011 8:15 PM

Comments

EJP
Whatever an 'ARPA file' may be, you read it the same way you read any other file. FileInputStream or FileReader. If you want to read native datatypes from the file, DataInputStream around a FileInputStream. If it contains lines of text, try BufferedReader.readLine. If you have to parse the text, take a look at java.util.Scanner.
839722
ok i explain what i want to do maybe u can help me more,
i want to read an arpa file and search it to find for example a word.so u think which method that u mentioned above is beter???
It will be pleasure if u have any tip that can help me.
thank u
Kayaman
836719 wrote:
Im new in java and dont know many thing about it, I want to know how can read an ARPA file in java.
pleas describ it step bye step and esy to understand.
Well, we're new to ARPA files. Please describe them step by step to us so it's easy to understand what they are.
dadams07
ARPA as in "Advanced Research Projects Agency"? (http://www.darpa.mil) Maye they have some publicly available DAO's. Can't hurt to ask?
836719 wrote:
ok i explain what i want to do maybe u can help me more,
i want to read an arpa file and search it to find for example a word.so u think which method that u mentioned above is beter???
It will be pleasure if u have any tip that can help me.
1. Learn the basics of programming as well as how to logically construct and deconstruct a problem domain.
2. Learn the basics of programming java.
3. Learn about java.io.*
4. Learn about java swing
5. Find documentation that describes the format of the ARPA file.
6. Read the documentation and understand it.
7. Find a source for ARPA files (if this is online then there is more java to learn as well.)
8. Use 1,2 and 3 to write java code that consumes the ARPA file.
9. Use 4 to ask the user for a word.
10. Use 1 and 2 to write code that 'searches' what you read in 8.
YoungWinston
jschell wrote:
1. Learn the basics of programming as well as how to logically construct and deconstruct a problem domain.
2. Learn the basics of programming java.
...
11. Learn how to spell 'you'.

Winston
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 15 2011
Added on Feb 14 2011
6 comments
439 views