Yes, you ARE crossing the limit of the array.  When you don't pass in a file
name, the length of args is 0.  Therefore, arg[0] is "out of bounds" because
element zero is actually the first element.  You need to check if there are
any args before you attempt to access them.

...Glenn

On Tue, Nov 4, 2008 at 4:28 AM, VIKAS GARG <[EMAIL PROTECTED]> wrote:

> I got what you are trying to say
> but fnd I think you are not getting my problem
>
> But this error Index was outside the bounds of array
> comes whenever our array crosses the limit of array
> and here we are not crossing the limit of array.
>

Reply via email to