In newer versions of doxygen the \include special command has an additional option. With the option {doc} the contents of file.txt is treated as if it were directly in the source file.
// --- SourceFile.c ---
/*! \brief description
* \include{doc} file.txt
*/
// --- file.txt ---
// \details description