Ganze Zahl aus TXT

Hello,

i want to use some datas from a SD-File. My Problem is, i get only the ASCII-Code, but i want the numbers.

TankSt = SD.open ("tankst.txt"); tankg=TankSt.read(); TankSt.close ();

my english is a Little rusti, sorry

Hallo,

ich erhalte immer nur den ASCII von der ersten Ziffer der Zahl, ich bräuchte die ganze Zahl so das ich mit mathematisch arbeiten kann.

TankSt = SD.open ("tankst.txt"); tankg=TankSt.read(); TankSt.close ();

schnelle Hilfe wäre Super...

Vielleicht hilft es:
http://forum.arduino.cc/index.php/topic,127073.0.html

i get only the ASCII-Code

You are only reading one character from the file. If that character is a digit in the range '0' to '9', simply subtract '0' from it to get a number. If you really mean to read more than one character, your code needs a lot of work. There are plenty of examples around.