Java tutorial
//package com.java2s; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import android.os.Environment; public class Main { public static final String CUST_PATH = Environment.getExternalStorageDirectory() + File.separator + "chcconf" + File.separator; private static final String TITLE_URL_FILE_NAME = "background_title.txt"; public static String getBackgroundTitleUrl() { BufferedReader br = null; String result = new String(); try { br = new BufferedReader(new FileReader(CUST_PATH + TITLE_URL_FILE_NAME)); result = br.readLine(); } catch (Exception e) { // Log.e(CHCCustomUtil.class.getName(), e.getMessage(), e); } return result; } }