File myFile = new File("/sdcard/test.txt");

if (myFile.exists()) {
    iAmHappyFunction();
}
else {
    iWantToCry();
    return;
}

On 29 Jan., 04:56, "pramod.deore" <[email protected]> wrote:
> Hello everybody,
>
> Actually I am developing one application in that when application run
> first time it will create one txt file and save IMSI number in that
> file. when mobile boot it will matches it's current IMSI number with
> IMSI number present in the txt file.But I don't know how to check that
> file is exist or not.
> Please help me
> Thanks

-- 
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