View Single Post
  #2  
Old 7th October 2017, 06:39
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,355
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Hi Pralash,

seq.puts() will take care of adding a new line character.

Code:
seq.open(file.name,"w+")
select ...
from ...
selectdo
       seq.puts(...,fp)  |# Insert data in the text file
endselect

seq.close(fp)

So, with every seq.puts() a new line character is added and every record will be added to a new line in the text file.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote