Next: , Previous: , Up: Utils   [Contents]

24.5 Useful string operation

If you want to get all contents in string from a file, then don’t use get-string-all imported from rnrs. Because it will not detect the correct charset from locale, and this may cause the length different from the actual length. Although GNU Artanis can handle the length issue properly, you should use get-string-all-with-detected-charset once you need to do the similar thing. If you don’t care about the contents but just want to get the contents anyway, it’s better to use get-bytevector-all imported from rnrs.

(get-string-all-with-detected-charset filename)