Create txt file

Hi guys,

Is there a any way to create a txt file in as3 and save reports in that file?

Thanks in advance.