On 30/01/10 14:23, Vitomir Cvitanovic wrote:
Hi,
Recently I have found the problem trying to import some SDF/Delimited files.
My program is working compiled with Clipper, but not working compiled
with Harbour...
Environment:
Harbour rev. 13584
Local computer: WinXP SP2 / SP3
(Problematic File): created on nix system, arround 200 MB, containing
5.000.000 rows
With Clipper Exe Appending work, as Clipper treat LF or CRLF as EOL
With Harbour, as I'm running on Win system LF is not treated as EOL, And
I only get one (1) record in DBF :(
Examinig some sources it looks like both appending and copying SDF
(Delimited) resides on hb_SetGetEol()
While it looks ok when exporting, I'm not sure that it is ok when
importing files because we have problems when file is prepared on one
and used on another platform (nix->win, win->nix)
Is there any workarround that I could use to inform (__DbDelim) to use
both sequences as EOL mark
Thanks in advance,
Best Regards,
Vito
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
There is probably a better way as I guess someone will be able to
suggest, but if you need a quick solution then in nix you could try
dos2unix or unix2dos to adjust the files as needed.
Regards,
Barry
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour