With an Ethernet shield I presume it could be done. A quick search didn't reveal any existing examples for the Arduino, so it sounds like your school project won't be "cut and paste" <grin>.
The TelnetClient example sketch shows how a TCP client can be made to work. Now on top of that I would browse for "how ftp works" or something similar and get the basic protocol.
For example:
http://cr.yp.to/ftp/request.htmlYou will basically have to send/receive various lines of stuff. Maybe connecting with telnet to an existing ftp server would show the idea.
The broad idea is this:
telnet to (someserver) port 21
The responses are lines with numbers in front, the protocol tells you the difference between success and failure. The numbers give you the machine-readable results, and they are usually followed by human-readable text, like below:
Send/receive:
220 (vsFTPd 2.0.7)USER knowhow331 Please specify the password.PASS swordfish230 Login successful.PASV227 Entering Passive Mode (127,0,0,1,131,206)Now make a second outgoing connection to the specified address/port.
That is (for this case): 127.0.0.1 port (131 * 256) + 206 (namely 33742, but you need to do the maths on the returned value)
telnet to 127.0.0.1 port 33742
Now, for example, to list the directory do this on the
first connection:
LIST150 Here comes the directory listing.
226 Directory send OK.The directory comes down the
second connection. At this stage it seems the second connection is dropped, so you would need to do PASV again if you wanted to do something else.
To get a file you might do this:
RETR /home/path/foo/test.txt150 Opening BINARY mode data connection for test.txt (74 bytes).
226 File send OK.
The file appears in the
second connection. Now save to disk.