Update FileSystem.java

Updated Read method, added flag values