LassoScript Utility
Basics Browse Detail

[File_ProbeEOL]

Tag Link [File_ProbeEOL] Category File
Type Substitution Source Available No
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0

Description

[File_ProbeEOL] is a utility tag used by the file tags to determine the end-of-line character used in a file. This tag takes a string as a parameter and returns \r\n, \r, or \n depending on the end-of-line character used in the file.

If no end-of-line character is found then an error is thrown.

Syntax

[File_ProbeEOL: 'File Data']

Parameters

Required Parameters
File Data A string or bytes value containing data from a file.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.