Take a look at the API docs.
Core.getFileDocumentContent(IContext context, IMendixObject fileDocument)
returns
static java.io.InputStream
Then, you just have to write the InputStream to a file.