-
-
Save Airfixed/799e784696b0a60c5423d347bf33a341 to your computer and use it in GitHub Desktop.
For Doug Stevenson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InputStreamReader InputSR = null; | |
BufferedReader BufferedRdr = null; | |
String thisLine = null; | |
InputSR = new InputStreamReader(getResources().openRawResource(R.raw.fuel_index)); | |
BufferedRdr = new BufferedReader(InputSR); | |
Object[][] arrayString = new String[6][2]; | |
try { | |
// open input stream test.txt for reading purpose. | |
int i = 0; | |
while ((thisLine = BufferedRdr.readLine()) != null) { | |
// System.out.println(thisLine); | |
String[] parts = thisLine.split(" "); | |
arrayString[i][0] = parts[0]; | |
arrayString[i][1] = parts[1]; | |
// Log.v(Arrays.toString(arrayString)); | |
Log.v("LogExample"+i+"0", String.valueOf(arrayString[i][0])); | |
Log.v("LogExample"+i+"1", String.valueOf(arrayString[i][1])); | |
i = i +1; | |
} | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment