Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

burst.runtime.WshRuntime Class Reference

Inheritance diagram for burst.runtime.WshRuntime:

burst.runtime.AbstractRuntime List of all members.

Detailed Description

Singleton subclass of AbstractRuntime for WSH.


Static Public Member Functions

String readTextFile (String fpath)
 Read a local text file synchronously and return its contents.

Object readEvalSync (String fpath)
 Read a local file synchronously and evaluate its contents.


Member Function Documentation

Object burst.runtime.WshRuntime.readEvalSync String  fpath  )  [static, virtual]
 

Read a local file synchronously and evaluate its contents.

This function only works in WSH.

It returns the result of the eval operation.

Parameters:
fpath an absolute or relative local file path.
Exceptions:
SyntaxError or EvalError or any other exception from contents.
Returns:
The value of evaluating the file contents.

Implements burst.runtime.AbstractRuntime.

String burst.runtime.WshRuntime.readTextFile String  fpath  )  [static]
 

Read a local text file synchronously and return its contents.

This function only works in WSH.

Works with absolute or relative local file path.

See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/jsmthopentextfile.asp


The documentation for this class was generated from the following file:
Generated on Tue Nov 30 04:03:09 2004 for BurstProject by doxygen 1.3.4