copying source file to .txt and linking to it