BINFILETOSTR()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to read a binary file into a string

Syntax

BINFILETOSTR(<expC>)

See Also

BIN2I(), BIN2L(), BIN2W(), BINCLOSE(), BINCREATE(), BINOPEN(), BINREAD(), BINSEEK(), BINSTRTOFILE(), BINWRITE(), FCLOSE(), FILETOSTR(), FOPEN(), I2BIN(), L2BIN(), STRTOFILE()

Description

The BINFILETOSTR() function reads the specified file and returns its contents as a string.

Parameter Description
<expC> Name of the file to be read. This should include the path if not in the current directory.

Example

cbinstr = binfiletostr("test.pdf")
? binstrtofile(cbinstr,"test2.pdf")
     29424