file.writable — Is the file writable?
file.writable filename
file.writable
filename
Checks to see whether the file exists and is writable, and if so, returns 1. Otherwise, returns 0.