Re: Newbie question - text parser
the best language for parsing strings is Perl. Perl uses regular expressions. Using regular expressions you'll simply say how a string looks like and perl will pretty much find it for you.
Code:
$text = "hello I'm 42 and have 43 magic points"
if($text =~ m/hello I'm (\d+)/){
$age = $1;
}
if($text =~ m/(\d+) magic points/){
$mp = $1;
}
print "age: $age\n", "magic points: $mp";
Results in terminal
Code:
age: 42
magic points: 43
"\d+" means a number with any number of digits. the brackets () means; what ever has been found in between is stored in $1, the next bracket will be stored in $2 and etc...
And for displaying stuff you can use GTK+, with libglade to create user interfaces fast
. Or really simply you can use the console or create a webpage where you can simply refresh the browser to reload the html file.
Google perl tutorial
01101000011001010110110001101100011011110010000001110011011001010111100001111001