I believe an HTML 'file' form field is input-only, available to the user only for interactions between browser and OS to queue up a file to be sent to the HTTP server on form submission.
What did you want to accomplish here?
- simply displaying text of a file?
- display and allow user to edit text?
- something else?