How do I use mongoexport and mongoimport?

I need to use mongoexport to store some documents and the mongoimport to put them on a remote server. I've looked over the manual pages and looked around a little for some good examples, but I haven't seen anything specific enough yet.

I have a bunch of documents of type "Office" in my database that I want to export, but I don't have a clue how to use mongoexport properly. Any tips or links to good examples are greatly appreciated. Thanks!

to specify a collection, you use the -c switch

for example:

mongoexport -d databasename -c CollectionName -o outputfile.txt

From the documentation http://www.mongodb.org/display/DOCS/Import+Export+Tools

This utility takes a single file that contains 1 JSON/CSV/TSV string 
per line and inserts it. You have to specify a database and a collection.

Saying that you have no clue what it does is weird.