Hello,
Any help is appreciated,
I wish to read from a data file called persist.data and then read the ENTIRE file into one variable. Is this possible?
The file contents will also be this only with different numbers.
Persist.dataCode:<?xml version="1.0" encoding="UTF-8"?> <root> <server> <stats> <total> 559 </total> <error> 16 </error> <html> 197 </html> <image> 362 </image> <notmodified> 149 </notmodified> <bytes> 3043332 </bytes> <uptime> 5154 </uptime> <since> Wed, 15 Jun 2005 14:05:31 GMT </since> </stats> <host> <id> 1 </id> <stats> <total> 559 </total> <error> 16 </error> <html> 197 </html> <image> 362 </image> <notmodified> 149 </notmodified> <bytes> 3043332 </bytes> <uptime> 5154 </uptime> <since> Wed, 15 Jun 2005 14:05:31 GMT </since> </stats> </host> </server> </root>
Could all of this data fit into one variable?
If not, how would I got about split it into an array using the Input command.
Regards,
Jord




Reply With Quote