How to change the default opening application for a file created by touch?

Are you appending a file type when you create it, or is it truly "myFile" and not "myFile.txt" or similar? You can't set a default program for a file with no set type. For any other file type, you should be able to change the default program.

Not a fix, but a workaround: open -a SublimeText myFile to open it in the program you specify, rather than the default program set for that file type. You can also control-click on files in Finder and use "Open With" or just drag the file directly onto the app icon in the Dock to do it faster.