Difference between revisions of "NXSL:FILE"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "Class representing open file (returned by OpenFile function). '''Class Name''' FILE '''Attributes''' {| class="wikitable" |- ! Name !! Type !! Descript...")
 
Line 20: Line 20:


'''Methods'''
'''Methods'''
{| class="wikitable"
|-
! Name !! Parameters !! Return value !! Description
|-
| [[NXSL:FILE:close|close]] || none || none || Close file
|-
| [[NXSL:FILE:read|read]] || int32 || string || Read given number of bytes from file and return them as string
|-
| [[NXSL:FILE:readLine|readLine]] || none || string || Read one line of text from file (returned line will not contain new line character)
|-
| [[NXSL:FILE:write|write]] || string || none || Write given string to file
|-
| [[NXSL:FILE:writeLine|writeLine]] || string || none || Write given string to file and append new line character
|}




[[Category:NXSL Class Reference]]
[[Category:NXSL Class Reference]]

Revision as of 16:32, 6 February 2018

Class representing open file (returned by OpenFile function).


Class Name

FILE


Attributes

Name Type Description
eof boolean End of file indicator
name string File name


Methods

Name Parameters Return value Description
close none none Close file
read int32 string Read given number of bytes from file and return them as string
readLine none string Read one line of text from file (returned line will not contain new line character)
write string none Write given string to file
writeLine string none Write given string to file and append new line character