Back to project page model-explorer.
The source code is released under:
Apache License
If you think the Android project model-explorer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.etaoin.myopengltest.util.io; /*w w w . j a v a2 s . co m*/ import android.os.Environment; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; /** * Util class for reading content from disk/memory. */ public class FileReader { public BufferedReader toBufferedReader(String path) throws FileNotFoundException { File directory = Environment.getExternalStorageDirectory(); File file = new File(directory, path); InputStream inputStream = new FileInputStream(file); Reader reader = new InputStreamReader(inputStream); return new BufferedReader(reader); } }