I'd say the first one. The second sentence could be read to mean that two documents are in this particular file exclusively (i.e. the two documents can be found nowhere else except for this one file). The first sentence means that there are only two documents in the file.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: