text_file_readΒΆ

text_file_read reads unicode and ANSI text files.

ssText = text_file_read(ssFilename)
svTextAndType = text_file_read(ssFilename, bTypeInfo)

Return Value

If the function is called with a parameter, ssText contains the read text. If the function is called with the parameter bTypeInfo equal to 1, the function returns a string vector with 3 elements. svTextAndType contains the text read in svTextAndType[1].

Parameters

ssFilename

ssFilename is the complete name of the text file.

bTypeInfo

If set to 1, the output of text_file_read becomes a vector with the information shown in the table below.

Value

Description

svTextAndType[1]

Is the read text or an empty string if an error has occurred.

svTextAndType[2]

Is the encoding of the text file (see text_file_write).

svTextAndType[3]

Is the type of line separation (see text_file_write).

Example

]]
[[

History

Version

Description

5.0.0

New

id-1987336