| 
| static bool  | CreateDirectory (string absoluteDirectory) | 
|   | OBSOLETE - use FileIO.MakeDirectory instead 
Create sub-directories in the proper order, circumventing a FileIO.MakeDirectory limitation.  
  | 
|   | 
| static bool  | Copy (string source, string destination, bool overwrite=true) | 
|   | Copy source file to destination.  
  | 
|   | 
| static string  | GetFileStringContent (string filePath, bool printWarning=true) | 
|   | Get file content as one big string.  
  | 
|   | 
| static array< string >  | ReadFileContent (string filePath, bool printWarning=true) | 
|   | Get file content as array of lines.  
  | 
|   | 
| static bool  | WriteFileContent (string filePath, notnull array< string > lines) | 
|   | Write all lines in the file, replacing all its content Overwrites the file if it exists.  
  | 
|   | 
| static bool  | AppendFileContent (string filePath, notnull array< string > lines) | 
|   | Write all lines in the file after its existing content Adds to the file if it exists, creates it otherwise.  
  | 
|   | 
| static bool  | IsValidFileName (string fileName) | 
|   | Get whether or not a file name is valid for the filesystem.  
  | 
|   | 
| static string  | SanitiseFileName (string fileName) | 
|   | Sanitise the provided file name (removes invalid characters depending on the current OS, directory information, etc)  
  | 
|   | 
◆ AppendFileContent()
  
  
      
        
          | static bool SCR_FileIOHelper.AppendFileContent  | 
          ( | 
          string |           filePath,  | 
         
        
           | 
           | 
          notnull array< string > |           lines ) | 
         
       
   | 
  
static   | 
  
 
Write all lines in the file after its existing content Adds to the file if it exists, creates it otherwise. 
- Parameters
 - 
  
    | [in] | filePath | relative or absolute  | 
    | [in] | lines |  | 
  
   
- Returns
 - true on success, false otherwise 
 
 
 
◆ Copy()
  
  
      
        
          | static bool SCR_FileIOHelper.Copy  | 
          ( | 
          string |           source,  | 
         
        
           | 
           | 
          string |           destination,  | 
         
        
           | 
           | 
          bool |           overwrite = true ) | 
         
       
   | 
  
static   | 
  
 
Copy source file to destination. 
- Parameters
 - 
  
    | [in] | source | file to copy  | 
    | [in] | destination | copy destination  | 
    | [in] | overwrite | set to false to prevent an accidental overwrite  | 
  
   
- Returns
 - true on success, false otherwise 
 
 
 
◆ CreateDirectory()
  
  
      
        
          | static bool SCR_FileIOHelper.CreateDirectory  | 
          ( | 
          string |           absoluteDirectory | ) | 
           | 
         
       
   | 
  
static   | 
  
 
OBSOLETE - use FileIO.MakeDirectory instead
Create sub-directories in the proper order, circumventing a FileIO.MakeDirectory limitation. 
- Parameters
 - 
  
    | [in] | absoluteDirectory | e.g C:/Arma4/Data/scripts/My/Sub/Directory  | 
  
   
- Returns
 - true if the whole directory structure was created or already exists, false otherwise 
 
 
 
◆ GetFileStringContent()
  
  
      
        
          | static string SCR_FileIOHelper.GetFileStringContent  | 
          ( | 
          string |           filePath,  | 
         
        
           | 
           | 
          bool |           printWarning = true ) | 
         
       
   | 
  
static   | 
  
 
Get file content as one big string. 
- Parameters
 - 
  
    | [in] | filePath | relative or absolute  | 
    | [in] | printWarning | true to print warning on issue, false otherwise  | 
  
   
- Returns
 - raw string file content or empty string if file does not exist or cannot be opened 
 
 
 
◆ IsValidFileName()
  
  
      
        
          | static bool SCR_FileIOHelper.IsValidFileName  | 
          ( | 
          string |           fileName | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Get whether or not a file name is valid for the filesystem. 
- Parameters
 - 
  
    | [in] | fileName | the file name to be sanitised - no file path accepted  | 
  
   
- Returns
 - true if the provided file name is valid under the current OS, false otherwise 
 
 
 
◆ IsWindowsBased()
  
  
      
        
          | static bool SCR_FileIOHelper.IsWindowsBased  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
- Returns
 - true if Windows or Xbox, false otherwise 
 
 
 
◆ ReadFileContent()
  
  
      
        
          | static array< string > SCR_FileIOHelper.ReadFileContent  | 
          ( | 
          string |           filePath,  | 
         
        
           | 
           | 
          bool |           printWarning = true ) | 
         
       
   | 
  
static   | 
  
 
Get file content as array of lines. 
- Parameters
 - 
  
    | [in] | filePath | relative or absolute  | 
    | [in] | printWarning | true to print warning on issue, false otherwise  | 
  
   
- Returns
 - array of lines or null if file does not exist or cannot be opened 
 
 
 
◆ SanitiseFileName()
  
  
      
        
          | static string SCR_FileIOHelper.SanitiseFileName  | 
          ( | 
          string |           fileName | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Sanitise the provided file name (removes invalid characters depending on the current OS, directory information, etc) 
- Parameters
 - 
  
    | [in] | fileName | the file name to be sanitised - can take a file path that will be stripped  | 
  
   
- Returns
 - the sanitised, trimmed file name or empty string if no characters are viable 
 
 
 
◆ WriteFileContent()
  
  
      
        
          | static bool SCR_FileIOHelper.WriteFileContent  | 
          ( | 
          string |           filePath,  | 
         
        
           | 
           | 
          notnull array< string > |           lines ) | 
         
       
   | 
  
static   | 
  
 
Write all lines in the file, replacing all its content Overwrites the file if it exists. 
- Parameters
 - 
  
    | [in] | filePath | relative or absolute  | 
    | [in] | lines |  | 
  
   
- Returns
 - true on success, false otherwise 
 
 
 
◆ FORBIDDEN_FILENAME_CHARS_LINUX
◆ FORBIDDEN_FILENAME_CHARS_WINDOWS
  
  
      
        
          | const string SCR_FileIOHelper.FORBIDDEN_FILENAME_CHARS_WINDOWS = "*/\<>:|?\t\r\n\"" | 
         
       
   | 
  
staticprotected   | 
  
 
 
◆ PATH_DELIMITER
The documentation for this interface was generated from the following file:
- Game/Helpers/SCR_FileIOHelper.c