Does doxygen have a special command to include a file into a source file and doxygen treats the included file as if it were directly in the source file?
Both variants shall generate the same output. It's not just about replacing @details, but a large amount of text.
Variant A
// --- SourceFile.c ---
/*! \brief description
* \details description
*/
Variant B
// --- SourceFile.c ---
/*! \brief description
* \command file.txt -> this shall insert file.txt here
*/
// --- file.txt ---
// \details description
\includecommand not do what you want to do?\includecommand and at the\snippetcommand with its options. Furthermore which version of doxygen are you using (very important in this case!)?\includeand\snippetcommands. I certainly do advise to update.