A way to simplify your code would be to take the strings and use the SPLIT command on them. You will then get an array.
code:
$line='11 bestand(en) 21614165 bytes'
$array=split($line,' ')
$files=$array[0]
$bytes=val($array[3])
$megabytes=$bytes/1048576

_________________________
There are two types of vessels, submarines and targets.