Forum Stats

  • 3,872,059 Users
  • 2,266,373 Discussions
  • 7,911,042 Comments

Discussions

how to read an ARPA file in java

839722
839722 Member Posts: 2
edited Feb 15, 2011 7:23PM in Java Programming
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
Tagged:

Answers

  • EJP
    EJP Member Posts: 32,920 Gold Crown
    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
    839722 Member Posts: 2
    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
    Kayaman Member Posts: 3,844 Silver Trophy
    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
    dadams07 Member Posts: 1,310
    ARPA as in "Advanced Research Projects Agency"? (http://www.darpa.mil) Maye they have some publicly available DAO's. Can't hurt to ask?
  • jschellSomeoneStoleMyAlias
    jschellSomeoneStoleMyAlias Member Posts: 24,877 Gold Badge
    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.
    jschellSomeoneStoleMyAlias
  • YoungWinston
    YoungWinston Member Posts: 4,310
    edited Feb 15, 2011 7:23PM
    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
This discussion has been closed.