FileOutputStream give you input and output streams attached to a disk file. You need to pass the file name or full path name of the file to the constructor. For example,
FileInputStream fin = new FileInputStream("employee.dat");
looks in the user directory for a file named
All the classes in
java.io interpret relative path names as starting from the user’s working directory. You can get this directory by a call to
Since the backslash ...