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...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Class representing open file (returned by [[NXSL:OpenFile|OpenFile]] function).
{{deprecated}}Class representing open file (returned by [[NXSL:OpenFile|OpenFile]] function).




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]]

Latest revision as of 18:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

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