Results 1 to 2 of 2
  1. #1
    EBamber is offline Member
    Join Date
    Apr 2014
    Rep Power

    Default File search algorithm on Android

    I'm making a file search algorithm for an app I'm creating, but the File class doesn't have any methods to open the file, just one to return its path, is there any method I can use to open a file given the path?
    Also, is it the same opening a media file as it is opening a normal executable? If not, is there any other method I can use?

  2. #2
    lime is offline Member
    Join Date
    Apr 2014
    Rep Power

    Default Re: File search algorithm on Android

    You better should post this to android section, i'm not sure if you can use it in android but i think you can open your file like this: BufferedReader br = new BufferedReader(new FileReader(path)); and then br.readLine();
    EDIT - it's for characters files ofc, you didnt specified type of file
    Last edited by lime; 04-19-2014 at 06:46 PM.

Similar Threads

  1. Implement Astar search algorithm on JPanel
    By naffie in forum AWT / Swing
    Replies: 5
    Last Post: 10-02-2013, 04:13 PM
  2. In search of a graph algorithm...
    By kjkrum in forum Forum Lobby
    Replies: 0
    Last Post: 07-14-2012, 01:17 PM
  3. What is the best search algorithm for this problem?
    By daiviko in forum New To Java
    Replies: 4
    Last Post: 07-03-2012, 09:44 PM
  4. A new search algorithm by it good????
    By drakula941 in forum Advanced Java
    Replies: 14
    Last Post: 11-24-2011, 06:53 AM
  5. build search tree on minimax algorithm...
    By me26 in forum Java Gaming
    Replies: 2
    Last Post: 06-29-2010, 08:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts