How do I make Game Genie txt files?

Do I have to make a separate one for each game?
Is there a certain format I need to put them in or just type all the codes out in a row?
when you load gg from txt, all codes from those txt file will be applied to currently flashed rom.
codes should be written in a column:
xxxx-xxxx
yyyy-yyyy
That's simple enough, thanks KRIKzz. :)
just make sure to use vi or windows notepad, other programs seem to add stuff
i use windows notepad

Original thread: https://assemblergames.com/threads/how-do-i-make-game-genie-txt-files.35163/