Skip to content

Instantly share code, notes, and snippets.

View Shajeel-Afzal's full-sized avatar
🏠
Working from home

Shajeel Afzal Shajeel-Afzal

🏠
Working from home
View GitHub Profile
@Shajeel-Afzal
Shajeel-Afzal / temp
Created August 16, 2013 16:12
I am creating my first Gist. I am at learning level of Gist. I have quickly copied the following code from somewhere.
// Get raw spanned text
Resources res = getResources();
BufferedReader input = new BufferedReader(new InputStreamReader(
res.openRawResource(R.raw.get_accounts)));
StringBuffer sb = new StringBuffer();
try {
String line;
while ((line = input.readLine()) != null) {
sb.append(line);
}