I have a PBX that is spitting out data in essentially an SDF file format. Unfortunately, the record is split into several lines:
N 010 00 T050 002 DN3009 12/02 15:41 00:00:18
0000 0000 4285
I have checked with the PBX vendor, and read the reporting guides, and there's no way to remove the CR/LF at the end of line one. So, my question is...how do I automate the import of this data? I know that I can do with with low-level file commands, read in one line at a time, and then decide which fields I'm populating...create some sort of flag so that I know when I've gotten all the lines read for the current record before APPENDing BLANK, but, I thought that someone might have a more elegant suggestion...
I will write the code described above, and post it when I have the solution...but any suggestions in the meantime will be very much appreciated!
Thanks...David
N 010 00 T050 002 DN3009 12/02 15:41 00:00:18
0000 0000 4285
I have checked with the PBX vendor, and read the reporting guides, and there's no way to remove the CR/LF at the end of line one. So, my question is...how do I automate the import of this data? I know that I can do with with low-level file commands, read in one line at a time, and then decide which fields I'm populating...create some sort of flag so that I know when I've gotten all the lines read for the current record before APPENDing BLANK, but, I thought that someone might have a more elegant suggestion...
I will write the code described above, and post it when I have the solution...but any suggestions in the meantime will be very much appreciated!
Thanks...David