Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=file.Reader for more information.
N/file Module
file.Reader
Object Description:
Use for special read operations. Reads from a file until a specified delimiter is reached.
Reads an arbitrary number of characters from a file.
Supported Script Types:
Server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/file Module
Methods and Properties:
Reader Object Members
Since:
2019.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=file.Reader
Example:
// Code Example 1
var reader = context.input.file.getReader();
var textUntilFirstComma = reader.readUntil(',');
var next10Characters = reader.readChars(10);
var textUntilNextNewLine = reader.readUntil('\n');
var next100Characters = reader.readChars(100);
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1543844186.html