Make .TXT on .ASM

I need to make an .asm program to save some values in a .txt file.
Using C would be much easier, although I cant use it this time.
Any idea how to do it?

More questions in this forum