Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / How to suppress CRLF at the end of a file with REXX and Regina on Windows

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. How to suppress CRLF at the end of a file with REXX and Regina on Windows
#13632
Posted by: MAXJEREM 2013-03-21 18:10:43
hello,

I use REGINA on Windows and I wrote a REXX as following:
Example:
File1.txt, content Company, name, email,
File2.txt; content Company, name,
File3.txt, content Company, name, email
REXX:
Statut_Email = Word(line,3)                                      
If Statut_email <> "         "  then do
Email_list = Name_Email
File_out=liste_mail
Call Lineout File_out, Email_list

Here I can have 50 file.txt to be tested then one liste_mail file generated.
And I need to suppress the last CRLF in the liste_mail new file.

Thanks for your help.
Message2.
#13633
Posted by: DougA 2013-03-25 21:22:47
It sounds to me that your logic is falling through an empty write, causing an extra line in your file.
More of your actual code would help.
Doug
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-12-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0