[Gambas-user] EOF character seems not to work

nando nando_f at ...951...
Tue Feb 24 23:23:20 CET 2009


MAC's want char 13 not 10 nor both
So, suppress the 10 by using the semicolon
and add the character 13 manually..as in..

Print #hfile, singleLine & chr$(13);

-Fernando


---------- Original Message -----------
From: richard terry <rterry at ...1946...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Wed, 25 Feb 2009 07:49:28 +1100
Subject: [Gambas-user] EOF character seems not to work

> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list