/// <summary>Creates a new, empty file in the directory with the given name. /// Returns a stream writing this file. /// </summary> public override OutputStream CreateFile(System.String name) { RAMFile file = new RAMFile(); files[name] = file; return new RAMOutputStream(file); }
public RAMInputStream(RAMFile f) { file = f; length = file.length; }
/// <summary>Returns the time the named file was last modified. </summary> public override long FileModified(System.String name) { RAMFile file = (RAMFile)files[name]; return(file.lastModified); }
/// <summary>Returns true iff the named file exists in this directory. </summary> public override bool FileExists(System.String name) { RAMFile file = (RAMFile)files[name]; return(file != null); }
internal RAMOutputStream(RAMFile f) { file = f; }