read/write file how to?

Hey folks!
In my new game, I want to do several things. I need the exe, and the dat file to communicate. Cause the exe is the menu, and the dat file is the level, but in the menu is where you select varius things to make the level work. I defined my stuff in the Global code and not in the variables part, cause not only are there variables, but also arrays and structs in the pack too.
If that can be done, I'llbe able to do the ret of my game, and finish it, hopefully in a week!
Cheers!
Thanx
In my new game, I want to do several things. I need the exe, and the dat file to communicate. Cause the exe is the menu, and the dat file is the level, but in the menu is where you select varius things to make the level work. I defined my stuff in the Global code and not in the variables part, cause not only are there variables, but also arrays and structs in the pack too.
If that can be done, I'llbe able to do the ret of my game, and finish it, hopefully in a week!
Cheers!
Thanx