public class FileReader
extends java.lang.Object
Constructor and Description |
---|
FileReader() |
Modifier and Type | Method and Description |
---|---|
static boolean |
fileExists(Context context,
java.lang.String fileName)
Checks if a file exists.
|
static java.lang.String |
readFile(Context context,
java.lang.String name)
Reads a textfile.
|
static java.lang.String |
readRawFile(Context context,
int id) |
public static java.lang.String readFile(Context context, java.lang.String name)
context
- The instance of the activity class.name
- Name of the file to be readpublic static java.lang.String readRawFile(Context context, int id)
public static boolean fileExists(Context context, java.lang.String fileName)
context
- The instance of the activity class.name
- Name of the file to be read