What is the difference between a text file and a binary file?
Write some code that will create a stream named outStream that is an
object of the class PrintWriter and that connects this stream to a text
file named sam.txt so that your program can send output to the file. If
the file sam.txt does not exist, create a new empty file. However, if a file
named sam.txt already exists, erase its old contents so the program can
start with an empty file with that name.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here