related to filemanipulaations in ruby

where can i find example programs related to file manipulations.

i want functions for uploading,downlading,staging of a file.