PReadFile

From GECK
Jump to: navigation, search


A function added by the pp NVSE Plugin.

Description

Works like ReadArrayFromFile, but instead reads every line as a string, and puts it into an array. An optional start and end line may be specified.

Syntax

[help]
(array_var) pReadFile FilePath:string StartLine:int EndLine:int

Example

pReadFile "Data\NVSE\plugins\NVWO_Templates\WeaponAttachments\WAP_AttachmentGlobals.ini" 0 5

Reads the first 5 lines of WAP_AttachmentGlobals.ini

pReadFile "Data\NVSE\plugins\NVWO_Templates\WeaponAttachments\WAP_AttachmentGlobals.ini"

Reads all the lines of WAP_AttachmentGlobals.ini

See Also