File format handlers

Analogous to the case for maps, formats are handled using the GetFormat function, like so:

map.SaveFile <GetMap "HF"> "C:\\temp\\myfile.bmp" <GetFormat "HF" 0 "bmp"> false true

The GetFormat function takes three arguments, which are map name (string), map type (int) and file extension (string). Please refer to the format_GetByExt API function for an explanation of the arguments.