Update ReadWriteFlight.java

looking for fileName (the actual file) not "file" (the directory)