File is a scheme used by Resource to access file resources stored on the local machine.
Class Methods and Properties (see Type)
- (url, callback)
Begin loading the entire contents of file found at the specified absolute url. The implementation may do this in a blocking or asynchronous way. Once the file is finished loading, its stream (a Text) is passed to the callback. If the file cannot be loaded, null and an error message (a Text) is passed to the callback.