Whatever Tex-document you are creating it has to contain three specifications. The first thing is to specify the class of the document, second thing is to define when the document begins and the third thing is to define when it ends.
The following code shows a practical example:
\documentclass{scrartcl}
\begin{document}
YOUR TEXT
\end{document}