F-Script |
Wichtigusing "ST-BaseTools.FBL"
|
|
Nr.
|
Argument
|
Typ
|
Beschreibung
|
|
1
|
filePathAndName
|
string
|
Path and name of the file to be read.
|
|
2
|
fileEncoding
|
string
|
e.g. utf8bom (default = 'auto')
|
|
3
|
fileChannel
|
int
|
default = 4 (Opacc BlockScript)
|
|
Nr.
|
Argumente
|
Typ
|
Beschreibung
|
|
1
|
fileChannel
|
int
|
default = 4 (Opacc BlockScript)
|
var filePath := '..\\tx\\test\\'
var fileName := 'bo.addr.csv'
if( BaseTools_Read_InitFile(filePath+''+fileName,'auto',1) = FALSE )
{ throw 'Open file'+filePath+''+fileName+' not possible!'}
// -----------------------------------------------------------------------------------------------------
while(READ.IsAtEnd(1) = FALSE)
{
var lineContent := BaseTools_Read_GetNextContentLine(1) /// fileChannel > default: '4'
}
|
Nr.
|
Argumente
|
Typ
|
Beschreibung
|
|
1
|
filePathAndName
|
string
|
Path and name of the file to be read.
|
|
2
|
fileEncoding
|
string
|
e.g. utf8bom (default = 'auto')
|
|
3
|
fileChannel
|
int
|
default = 4 (Opacc BlockScript)
|
var filePath := '..\\tx\\test\\' var fileName := 'bo.addr.csv' var fileContent := BaseTools_Read_GetFullFileContent(filePath+''+fileName,'utf8bom')