Hi,
SHANKAR R-R66203 wrote:
>
> I am trying to use the filereadable function.
>
> My code looks like given below (This code is part of a function) -
>
> if (!filereadable("a:dataFile")
^ ^
remove the quotes.
> let @/ = rs_searchString
> keepjumps exec rs_ori_lineNum
> echohl Todo
> echomsg a:dataFile " Cannot open file for reading"
> echohl NONE
> return
> endif
>
> a:dataFile is the argument passed to the function, while calling the
> function.
> This does not seem to work.
> Eventhough the file is present, the function reports, the file is not
> present.
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)