question: public static void saveToSdCard ( List < Entry > entries , String path ) { File sdcard = Environment . getExternalStorageDirectory ( ) ; File saved = new File ( sdcard , path ) ; if ( ! saved . exists ( ) ) { try { saved . createNewFile ( ) ; } catch ( IOException e ) { Log . e ( LOG , e . toString ( ) ) ; } } BufferedWriter buf = null ; try { buf = new BufferedWriter ( new FileWriter ( saved , true ) ) ; for ( Entry e : entries ) { buf . append ( e . getVal ( ) + "#" + e . getXIndex ( ) ) ; buf . newLine ( ) ; } } catch ( IOException e ) { Log . e ( LOG , e . toString ( ) ) ; } finally { if ( buf != null ) try { buf . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } }
target:  Saves an Array of Entries to the specified location on the sdcard