| 116 | ''Example 2'': |
| 117 | |
| 118 | If a stream contains comma separated values where: |
| 119 | |
| 120 | • values are separated by commas and any number of spaces[[br]] |
| 121 | • values with embedded separators are enclosed in either single or double quotes[[br]] |
| 122 | • other values are optionally delimited[[br]] |
| 123 | |
| 124 | e.g: |
| 125 | |
| 126 | "abc def", , 123.45, 'ghi', jkl, "", 9876 |
| 127 | |
| 128 | then each value can be read by a call to: |
| 129 | |
| 130 | {{{ |
| 131 | Read(outString, "'\"", "", " ",",") |
| 132 | }}} |
| 133 | |
| 134 | multiple calls to the above Read() on the above stream will read the following for each call: |
| 135 | |
| 136 | "abc def"[[br]] |
| 137 | ""[[br]] |
| 138 | "123.45"[[br]] |
| 139 | "ghi"[[br]] |
| 140 | "jkl"[[br]] |
| 141 | ""[[br]] |
| 142 | "9876"[[br]] |
| 143 | |
| 144 | ''Example 3'': |
| 145 | |
| 146 | !ReadLine is actually just a convenience function. It is equivalent to: |
| 147 | |
| 148 | {{{ |
| 149 | Read(outString, "", "", "", "\n" ) |
| 150 | }}} |
| 151 | |
| 152 | |
| 153 | |