3 Replies Latest reply: Oct 13, 2012 2:09 PM by rukbat RSS

    Application Design,Java Read Files,Merging Files,Outresults

    945290
      Read all files from a folder in the same directory
      Files with the same name but different extension
      On .txt extensions,count the number of words,the start and end offset of each word,output into a textfiles
      Merge a1,a2,ann,rel(other file extensions),on read each line,and store it into a data-structure
      Join results of 3,4 and output into a new folder <previousfolder>_result
      What are the operations that I can use to achieve this with java?

      How can I achieve this with java?
        • 1. Re: Application Design,Java Read Files,Merging Files,Outresults
          sabre150
          942287 wrote:
          How can I achieve this with java?
          The first thing you need to do is to go through the Java tutorials relating to basic Java and then Java IO. See http://docs.oracle.com/javase/tutorial/ .
          • 2. Re: Application Design,Java Read Files,Merging Files,Outresults
            rp0428
            Welcome to the forum!

            When you post your class assignments you should provide the class name, teacher name, textbook used and the exact instructions for the lesson as presented by your teacher.
            >
            Read all files from a folder in the same directory
            Files with the same name but different extension
            On .txt extensions,count the number of words,the start and end offset of each word,output into a textfiles
            Merge a1,a2,ann,rel(other file extensions),on read each line,and store it into a data-structure
            Join results of 3,4 and output into a new folder <previousfolder>_result
            What are the operations that I can use to achieve this with java?

            How can I achieve this with java?
            >
            Have you covered all of those concepts in your class?

            Did you ask you instructor to explain any of the steps you did not understand?

            Have you written, compiled and run any Java classes at all yet?

            Post the code you have written so far, explain what it does and what it does wrong and you will get advice about how to find and fix the problem.

            Break the problem into pieces. Start by writing code that
            >
            Read all files from a folder in the same directory
            Files with the same name but different extension
            >
            Post the code and the results it gives you.

            Good luck with your assignment. Remember, the teacher is there to help you if you get stuck.
            • 3. Re: Application Design,Java Read Files,Merging Files,Outresults
              +... thread has now been relocated from Java Programming to New To Java ...+