Sorry, just noticed this earlier message with the source code.

Analdin Judy wrote:
> package com.IW.TestText;
> 
> import java.io.BufferedReader;
> import java.io.FileInputStream;
> import java.io.IOException;
> import java.io.InputStreamReader;
> 
> import android.app.Activity;
> import android.os.Bundle;
> import android.util.Log;
> 
> public class TestText extends Activity {
>  
>  private String fileName;
>  private String inLine;
>  public TestText()
>  {
>    try { 
>           FileInputStream         inFile  = openFileInput("judy.txt");
>           InputStreamReader       isr     = new InputStreamReader(inFile);
>           BufferedReader          in      = new BufferedReader(isr);
>           inLine = in.readLine(); 
>           inFile.close();
> 
> 
>   }catch (IOException e) {
>           showAlert("Warning", "Error Exception " + e.toString(), "ok",
>   true);} 
>          
> 
>      }

Does judy.txt exist in your application's data area? In other words, did 
you create the file in some other activity within this application?

Also, on what statement in your source code are you now getting the 
IOException?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to