# Saving a text file with an unknown extension

I need to export a file with the extension .mac (short for macro in an external program), though it is essentially a text file (saving .mac in Microsoft notepad works fine). However if I try something like:

Export["test.mac", "The brown fox."]


I recieve the error:

Export::infer: Cannot infer format of file test.mac. >>


Is there a workaround?

-
Export["test.mac", "The brown fox.", "Table"] is ok? Or other, take a look at Deatils section for Export. –  Kuba Sep 17 '13 at 10:09
@Kuba Yes, that did it! –  user9563 Sep 17 '13 at 10:11

Export takes a third argument that specifies the format:
Export["test.mac", "The brown fox.", "Text"]