This is a large question, as the above posts indicate. I'd recommend looking at the process in two basic steps to get started.
First, make sure you understand the surface of the text. If it is a story, you should understand what happens in the story; understand the plot, the basics of character and setting. If it is a poem, you should understand what the poem is about; understand the subject and the basics of perspective and tone.
Second, look beyond the surface. Here, you begin to look at structure, form, use of metaphor, other types of figurative language, etc.
After this, you might explore how the first step and second step of analysis relate to one another. How does a metaphor relate to a character? How can one character's relationship to another be seen as a metaphor for a text's larger themes and meaning?
It depends on what type of text it is. You analyze a poem and a story differently. Essentially though you are looking for meaning. Write about what you think it means.
The first step you need to take in analyzing text is to make sure you understand every detail. Annotating is very helpful here. The second key is to set a purpose for reading. Meaning is not set. It varies based on the text and your purpose.
first good morning sur.
e.g: when i have a text and the qst is analyze the text what shouldi do what i have to mentioned what i must write !!