How to create .GMS file

I have the code of a program, now I want to export them to a .gms file. Someone please give me instructions. Thanks