How to create transit route file (.rte) outside of CUBE?

Instead of using enumeration to generate route files, I would like to input pre-defined routes. How can it be created outside of CUBE?