[Glass] FileStream vs GsFile
Mariano Martinez Peck via Glass
glass at lists.gemtalksystems.com
Wed Aug 19 12:41:51 PDT 2015
On Wed, Aug 19, 2015 at 4:32 PM, BrunoBB via Glass <
glass at lists.gemtalksystems.com> wrote:
> Hi,
>
> I have solved this with a GsFile.
>
> "aGsFile contents" message was changed with "aGsFile contentsAsUtf8" and
> the
> Java app seems happy with it.
>
>
As an alternative you can also convert to UTF8 each while writing rather
than altogether at the end:
forceNewUTF8FileNamed: aFilename withString: aString
| file |
file := (GsFile open: aFilename mode: 'w' onClient: false).
file nextPutAll: aString encodeAsUTF8.
file close.
Cheers,
Regards,
> Bruno
>
>
>
> --
> View this message in context:
> http://forum.world.st/FileStream-vs-GsFile-tp4844137p4844139.html
> Sent from the GLASS mailing list archive at Nabble.com.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
>
--
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150819/d8e5c1df/attachment.html>
More information about the Glass
mailing list