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());
    }
  }
  try {
    BufferedWriter buf=new BufferedWriter(new FileWriter(saved,true));
    for (    Entry e : entries) {
      buf.append(e.getVal() + "#" + e.getXIndex());
      buf.newLine();
    }
    buf.close();
  }
 catch (  IOException e) {
    Log.e(LOG,e.toString());
  }
}

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 ( ) ) ; } } try { BufferedWriter buf = new BufferedWriter ( new FileWriter ( saved , true ) ) ; for ( Entry e : entries ) { buf . append ( e . getVal ( ) + "#" + e . getXIndex ( ) ) ; buf . newLine ( ) ; } buf . close ( ) ; } catch ( IOException e ) { Log . e ( LOG , e . toString ( ) ) ; } }
saves an array of entries to the specified location on the sdcard
