The following expression will evaluate:
Use
HoldForm to convert unevaluated expressions:
Splice can be used to convert expressions in a file:
The following

file contains the unevaluated integral:
Splice inserts the result of the integral:
This is the resulting output file: