In which document would a file specification belong? Perhaps this file is used as an input to a third-party system. Would it belong in its own document? Or would it be better to put it in the functional or design spec? Or somewhere else?
When I say file specification, I mean a description of what format the file is (CSV, fixed width, etc), columns, data types, etc.
Also, where should you document how the file is generated? i.e. business rules/algorithms which are used to generate the file.