Exercise 12: How to store and retrieve files
(12) How to store and retrieve files
1. If you have a binary file,
be sure to request BINARY mode
after you start.----------------------PROBLEM:
SOLUTION:
2. You can begin by running--------------PROBLEM:
NFT, a program that SOLUTION:
automatically opens a
connection to storage.
3. The PUT command is one of
over a dozen that NFT offers.---------PROBLEM:
Store a file by typing SOLUTION:
put filename
4. Retrieve a stored file
by typing
get filename
unless you already have a-------------PROBLEM:
file by that name, in which SOLUTION:
case NFT will print the message
"cannot clobber existing file."
Then you have a choice of-------------PROBLEM:
typing SOLUTION:
clobber
to allow overwriting or
get filename newname
to change the name of the
retrieved file as it arrives.
5. End NFT
by typing quit