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?
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