Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2003
    Posts
    83

    write to text file formatting problem

    Hi Guys,

    Im having a problem, when i write my string to a text file, i have it write a new line, but the first character it puts is "\" i think it has something to do with my line formatting code, can anyone help?

    --Write the new line to a delimeted text file
    TextFile.WriteFromString("salesleads.txt", result13, true);
    TextFile.WriteFromString("salesleads.txt", '\r\n\\', true);

    This is what it outputs

    \s;ssssssssssssssssssssss;sssssssssss;ssssssss;sss ssssssssssssssss;ssssssssssss;sssssss;ssssss;sssss sssssssss;sssssssssssss;Yes;7-12 months;New Cabinets
    \


    notice the "\" it adds to teh next line after it writes, how does one get rid of that?

    Shawn

  2. #2
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    if you do not need the backslash at the end of the line change:
    TextFile.WriteFromString("salesleads.txt", '\r\n\\', true);
    to:
    TextFile.WriteFromString("salesleads.txt", '\r\n', true);


    Stefan

  3. #3
    Join Date
    May 2003
    Posts
    83
    thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts