The simplest loader reads in a file as text and places it all into one Document.

import CodeBlock from "@theme/CodeBlock";
import Example from "@examples/document_loaders/text.ts";

<CodeBlock language="typescript">{Example}</CodeBlock>