没错
FileOutputStream
看这个的API文档,有详细说明。
Constructor Summary
FileOutputStream(File file)
Creates a file output stream to write to the file represented by
the specified File object.
FileOutputStream(File file,
boolean append)
Creates a file output stream to write to the file represented by
the specified File object.
FileOutputStream(FileDescriptor fdObj)
Creates an output file stream to write to the specified file
descriptor, which represents an existing connection to an actual
file in the file system.
FileOutputStream(String name)
Creates an output file stream to write to the file with the
specified name.
FileOutputStream(String name,
boolean append)
Creates an output file stream to write to the file with the specified
name.
追问那InputStream、FileWriter和FileReader都可以这么用?
追答InputStream不行
具体的,还一下API文档的说明,或者在Eclipse中,new的时候,会提示