I need to write an array of lines to a file, each ending in the EOL char for 
MAC, I used this code, it dosn't work, it ends up with the UNIX EOL.

I must have my syntax wrong somehow:

Dim hfile As file  
  hfile.EndOfLine = gb.Mac
    Open sFilename For Write Create As #hfile
         For Each singleLine In Lines
           
            Print #hfile singleLine
         Next
    Close #hfile

Any help appreciated.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to