Export Screen Error (it downloads screen as TXT)

I am making an app for my school and was having trouble to export a screen as ais.when i tried to export a screen it download a txt file of that screen its name is the same o the project.when i opened the txt file it was for me very dangerous it was like codes with many unsupported language.PLEASE HELP. reply