OS Working Directory For Files

Fixed file opening (both text and binary) to allow the operating system control of the files working directory.