On Fri, Jun 11, 2010 at 5:47 PM, ethan <[email protected]> wrote:

> try{
>                FileReader fr = new FileReader("4ltrwrds");
>                }
>        catch(FileNotFoundException e) {
>                System.out.println("File not Found");
>                System.exit(0);
>        }
>

1 - You're not specifying a file path. You should probably be using
openRawResource().
2 - Do not use System.exit(), especially in response to not finding a file.
What kind of terrible user experience are you shooting for?


> However i have the same code in a different project and it runs fine.
>

I'm surprised this works anywhere else. It may just be dumb luck or you're
doing something different in the other project.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to