2 Replies Latest reply: Jan 11, 2007 5:21 AM by 807607 RSS

    Related to text file access in java.

    807607
      There is 2 text file in which contents are-
      eg-1st file.(map.txt)
      1-aa
      2-bb
      3-cc
      4-dd
      5-ee

      2nd file.(Input)
      1-2
      2-5-4
      3-2-4-5

      In this, read input file and after reading all numbers check the all numbers code from 1st file.e.g. 1-aa,2-bb.
      Then print that code e.g. aa, bb.
      e.g. In 1st line from 2nd file-
      1-2
      check 1st file.
      code for 1is aa and for 2 is bb.
      So, program should print aa-bb.

      Please help me.I am new for the java.