Check that file exists: Difference between revisions

Content added Content deleted
Line 1,125: Line 1,125:
=={{header|JavaScript}}==
=={{header|JavaScript}}==
Javascript interpreters are now widely embedded in contexts which do have access to file systems, but the early context of browser scripting has precluded the inclusion of file system libraries in the definition of the language itself.
Javascript interpreters are now widely embedded in contexts which do have access to file systems, but the early context of browser scripting has precluded the inclusion of file system libraries in the definition of the language itself.
Each non-browser JS context is likely to have its own home-grown and unstandardised fileSystem library.
Each non-browser JS context is likely to have its own home-grown and unstandardised file system library.
===JScript===
===JScript===
<lang javascript>var fso = new ActiveXObject("Scripting.FileSystemObject");
<lang javascript>var fso = new ActiveXObject("Scripting.FileSystemObject");