I can imagine a couple of ways to do it.
First of all, ReadFile reads all the file contents in a single variable. Since your file is a text file, it can be read by lines with ReadLine: supposing your items are on different lines you will need to do nothing apart identify which item has been read. Your file coud read like this one:
*money(xxxxx)
*names(xxxxx)
*rectangle(20,20,30,30)
Second way: you can read the whole file in a string and break into individual components using strtok: look in the online help for this function to know how to use it. A little cumbersome but it works, with the only limitation that you cannot use the asterisk for other than separating items.
A simpler way to accomplish this task could be to use the .ini file inst
rument (inifile.fp) found in toolslib\toolbox directory. This instrument permits you to write and read files with this structure:
[General]
Names = "xxxx"
Money = "xxxxx"
Rectangle = "20,20,30,30"
This is useful because you directly red the item you want instead of reading a generic string and guessing its meaning via a sequence of "if" clauses. Obviously this way is practicable only if it's you that decide your file contents.
Hope this helps
Roberto