It based on imagination, ideas and supernatural things. The writer uses twisted words, poetic devices other language enhancing elements to give the written piece, a good taste and appearance.
Examples of literary writing - Fiction, Poems etc.....
Non-literary writing can be instructions, messages etc. which are written purely for the purpose of informing someone or are business and work related.The lack in rich language and words and are related to the reality only.
Examples- Instructions given by teacher, a short note telling about progress at work. etc. These are all non- literary writings.