Hi All,
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")
    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.

I am using Windows XP.

Thanks,
Shankar





Shankar Ramakrishnan
Design Engineer
MicroController Division
Freescale Semiconductor
NOIDA - 201 301, INDIA
Mobile : 09899125114
Work : +91-120-4394021
Home : +91-120-4333249

This e-mail, and any associated attachments have been classified as:
[ ] Public
[ ] Freescale Semiconductor Internal Use Only
[ ] Freescale Semiconductor Confidential Proprietary


Reply via email to