Opening a text file from SD card and retrieve text to use it

Hi, i'm very new to Arduino and i have troubles with some really basic stuff.

What i need to do is to open a text file from my SD card connected to Arduino UNO with an SD shield. I read some guides on how to display the text but i don't know how to get the text from the file to use it afterward.
Here is the guide:

For exemple, if i have written in the file: 110
How can i "create" an integer equal to what is written on the file?

Thanks a lot!

intVariable = file.parseInt();

johnwasser:

intVariable = file.parseInt();

So if my file is named: text1.txt
The code would be:

file=text1.txt
int a = file.parseInt()

?

You have to open the file. See the examples under File->Examples->SD