View Single Post
  #1  
Old 02-08-2010, 08:40 PM
jassel41 jassel41 is offline
Member
 
Join Date: Nov 2009
Posts: 24
Converting a character to a number

I am currently trying to figure out how to retrieve a character from a text file and turn it to a number.

I currently split up the sentence and store the word I am interested in into an array, for example a spot in the array may look like the following:

['Interval=4;']

What I want to do is access the 4 and save its numeric value to a variable. If this is stored in array[1] for example, is there a way to access the 10th character, (the 4) and then convert it to a number?

Thank you,
Jassel41
Reply With Quote