I have an import process that takes variable length fields that include 
spaces delimited by spaces in an ascii stream sprinkled with new lines. 
  I read the file into a string and then split it delimited by spaces 
into a list and then clean it up looking for various templates in the 
data.  The hard part was easy in Python and it will clean up a 
relatively large file with blinding speed!  I have written the same 
routine in VFP and it takes considerably longer.  That may not surprise 
you guys, but it surprised me.

The problem I am having is that when I convert the list back into a 
string to write it to a file, I am trying to write a record of data with 
a new line at the end.  My string looks sort of like this:

"'field','field','\n','field','field','\n'"

I can't seem to be able to get the '\n' to work as a new line.  I can't 
count bytes because the fields are all variable length.

Any assistance will be appreciated.

-- 
Jeff

Jeff Johnson
[EMAIL PROTECTED]
SanDC, Inc.
623-582-0323
Fax 623-869-0675


_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to