Check that file exists: Difference between revisions

m (→‎{{header|PARI/GP}}: Added language to template)
Line 944:
 
=={{header|PARI/GP}}==
<lang parigp>trap(,"does not exist",read("input.txt");"exists")
{{incomplete|PARI/GP|Needs to check directories and the filesystem root.}}
<lang parigp>trap(,"does not exist",read("c:\\input.txt");"exists")</lang>
trap(,"does not exist",read("c:\\dirname\\nul");"exists")</lang>
 
A better version would use <code>externstr</code>.