hi there,
does anybody have a quick solution for importing data from a comma separated
file ?
i know the xml reader,
and there is open read close ...
but how to read lines and split them into ";" delimeted pieces ?
got it in e.g. php:
wait_lock($ifile);
if (($fp = @fopen($ifile, 'r'))) {
$status = true;
$first = true;
while (!feof ($fp)) {
$line = fgets ($fp, 1024);
if ($first) {
// skipp header
$first = false;
continue;
}
$address_line = explode(";", $line);
foreach ($address_line as $key=>$value) {
...
thanks a lot ;-)
brg
werner