I would like to know how to separate data from an input usingthe
The data retrieved from the
FILEREAD is comma-separated, and I wouldlike to extract this information into different variables.
Data extracted: Guy, Osborne, Quebec, Canada
From this I would like to extract:
- Guy into a variable
- Osborne into a variable
- Quebec into a variable
- Canada into a variable
You can use the PFC service
_parsetoarray()to parse delimited strings into an arrayof strings, which would be better than named variables. Then, if youwant to put the data into named variables, simply copy the array element you wish to use.