namespace SabreTools.Data.Models.WiseInstaller.Actions
{
///
/// Read/Update Text File
///
/// This action begins a loop that reads and, optionally, updates text in a text file. Each loop
/// puts the next line of text into a variable. You can put actions in the loop that change the
/// contents of the variable (example: Parse String). Optionally, the changed variable can
/// be written back to the file. The loop repeats for each line of the file. This action requires
/// an End Statement.
///
///
/// This action is called through Call DLL Function and is mapped to "f33".
/// This acts like the start of a block.
///
///
public class ReadUpdateTextFile : FunctionData
{
///
/// Flags from the argument data
///
///
/// Encoded as a string, binary representation in script file.
/// Expected flags:
/// - Read lines of file into variable (unknown)
/// - Update file with new contents of variable (unknown)
/// - Make Backup File (unknown)
///
public byte DataFlags { get; set; }
///
/// Variable to store each line of the text file
///
public string? Variable { get; set; }
///
/// Full path to the text file to be edited
///
public string? Pathname { get; set; }
///
/// Language Strings
///
public string? LanguageStrings { get; set; }
}
}