Mongoexport --fieldFile error: Failed: open fields.txt

Just add in the file
name
address

The document is quite clear

For CSV exports only, you can also specify the fields in a file containing the line-separated list of fields to export. The file must have only one field per line.

For example, you can specify the name and address fields in a file fields.txt :

name
address