REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: as-string

Description

Editor note: This function no longer exists in REBOL 3

as-string converts a binary datatype to a string datatype but without copying the contents of the binary string. Normally, if you use to-string, a new string will be created.

This function is most useful if you have large binary strings that you need to access or modify using other string operations.

data: as-string read/binary %bin-file

print as-string #{54657374696E6720312E2E2E322E2E2E33}
print as-string #{4142432D6465662D78797A}

print as-string #{746573742D66696C652E747874}


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin