On 2010-04-18 16:16, Martin Peach wrote:
> Ingo Scherzinger wrote:
>>
>> Is there an object that can read textfiles (or any other file type) that
>> includes "spaces" and can output these spaces (as something) so I can
>> convert them to "ascii 32" or "ascii 160"?
>>
> 
> [mrpeach/binfile] will output raw bytes from any file, so spaces in a
> text file will show up as 32.

and Gem is (almost[1]) able to directly read these via the "string" message.
that's all documented for [text3d], and all [text*] objects basically
have the same interface.

gmasd
IOhannes


[1] if you only use ASCII; if you want to use extended characters, you
have to convert the UTF-8 bytes that you get out from [binfile] into
Unicode-codepoint numbers. there's an abstraction somewhere in
iem/unicode/ that does just that.
i seem to remember that something like this was on the list just recently...

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to