I was curious if I could read a text file from my computer on an android phone using FileReader and Buffered Reader class. Is the text file loaded onto the android phone from my desktop when the application begins?
This is the only relevant section of my code. I know the catch part is not there.
public void TestSeizureDetected() throws FileNotFoundException { try { FileReader fr = new FileReader("C:/Users/desiyosh/Desktop/patient1.txt"); BufferedReader textReader = new BufferedReader(fr); String[] temp = new String[7681]; double[] convert = new double[7681]; for(int z= 0; z<7861; z++) { temp[z] = textReader.readLine(); } textReader.close(); } }