blank lines while writing records in txt file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kjosh
    New Member
    • Mar 2009
    • 1

    blank lines while writing records in txt file

    Hi,
    i have created a script which reads records from an input file and then writes to multiple txt files based on one of the fields (from input file).
    While writing m getting blank lines between the records. Is there a way to remove these blank lines while writing records?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    No idea what 'black lines' are. Sure, I can visualise black lines, but I have no idea what's creating them, so I couldn't offer a solution.

    Comment

    • secmazec
      New Member
      • Mar 2009
      • 34

      #3
      Also can't help you if you ask so vague, but I'll at least try and guess it. It might to do something with:
      Code:
      \r\n or \n\r // not 100% sure it's the first one
      \n
      
      // sometimes u need to doubleslash
      \\n\\r or \\r\\n
      \\n
      Last edited by Markus; Mar 20 '09, 04:47 PM. Reason: Please don't be rude.

      Comment

      Working...