Filing progrm in java very urgent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uppili4chi
    New Member
    • Oct 2007
    • 14

    Filing progrm in java very urgent

    Good morning my dear friends,

    I am uppili from India. i am working in one mnc. I need a help very urgent.

    "My problem i need to write a program for search a file just like search option at start menu in our computer".

    plse give idea, if it possible code.. its very urgent......... ..
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    Originally posted by uppili4chi
    Good morning my dear friends,

    I am uppili from India. i am working in one mnc. I need a help very urgent.

    "My problem i need to write a program for search a file just like search option at start menu in our computer".

    plse give idea, if it possible code.. its very urgent......... ..
    What you need, GUI or file searching techniques?
    First let me know this.
    If you looking for GUI then go through Swing if you looking for file searching techniques then have a look at the API Document of "File" class.

    Debasis Jana

    Comment

    • uppili4chi
      New Member
      • Oct 2007
      • 14

      #3
      Originally posted by dmjpro
      What you need, GUI or file searching techniques?
      First let me know this.
      If you looking for GUI then go through Swing if you looking for file searching techniques then have a look at the API Document of "File" class.

      Debasis Jana

      i want to do file searching techniques. its for server side programing.
      i need to search the file from the system by using file name.

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        Originally posted by uppili4chi
        i want to do file searching techniques. its for server side programing.
        i need to search the file from the system by using file name.
        I did tell u to have a look at File class in Java.
        You will find there some APIs.

        Debasis Jana

        Comment

        • uppili4chi
          New Member
          • Oct 2007
          • 14

          #5
          Originally posted by dmjpro
          I did tell u to have a look at File class in Java.
          You will find there some APIs.

          Debasis Jana
          I saw it we have many method but i did 't find the method like copyfile, movefile,search file and etc

          i wrote the program for copy and move, but i am getting concept about search.

          Comment

          • dmjpro
            Top Contributor
            • Jan 2007
            • 2476

            #6
            Originally posted by uppili4chi
            I saw it we have many method but i did 't find the method like copyfile, movefile,search file and etc

            i wrote the program for copy and move, but i am getting concept about search.
            Have a look at the APIs on "File.list" and "File.listFiles "
            Now apply your logic.

            Debasis Jana

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by uppili4chi
              I saw it we have many method but i did 't find the method like copyfile, movefile,search file and etc

              i wrote the program for copy and move, but i am getting concept about search.
              Regular expressions are tailor made for searching and matching.

              Comment

              • uppili4chi
                New Member
                • Oct 2007
                • 14

                #8
                Originally posted by r035198x
                Regular expressions are tailor made for searching and matching.
                i am very sorry to say this i am not able to understand it pls help me..

                Comment

                • r035198x
                  MVP
                  • Sep 2006
                  • 13225

                  #9
                  Originally posted by uppili4chi
                  i am very sorry to say this i am not able to understand it pls help me..
                  Just google "regular expressions + Java "

                  Comment

                  • uppili4chi
                    New Member
                    • Oct 2007
                    • 14

                    #10
                    Originally posted by dmjpro
                    Have a look at the APIs on "File.list" and "File.listFiles "
                    Now apply your logic.

                    Debasis Jana
                    file.list and file.listFiles give only file in one directory but i need to search all the folders in directory. i think so0me other concept hidden in it. what about filters in
                    io .packag,

                    Comment

                    Working...