--------------------------------------------------------------------------------
-- <auto-generated>                                                           --
--     This code was generated by a tool.                                     --
--                                                                            --
--     Changes to this file may cause incorrect behavior and will be lost if  --
--     the code is regenerated.                                               --
-- </auto-generated>                                                          --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--                                                                            --
--    Copyright(c) 2019 Alexander Gamper, All Rights Reserved.                --
--                                                                            --
--    Ada-NetFramework                                                        --
--    Version   : 1.0.0.0                                                     --
--                                                                            --
-- This program is free software: you can redistribute it and / or modify     --
-- it under the terms of the GNU Lesser General Public License as published by--
-- the Free Software Foundation, either version 3 of the License, or          --
-- (at your option) any later version.                                        --
--                                                                            --
-- This program is distributed in the hope that it will be useful,            --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of             --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the               --
-- GNU Lesser General Public License for more details.                        --
--                                                                            --
-- You should have received a copy of the GNU Lesser General Public License   --
-- along with this program.If not, see http://www.gnu.org/licenses            --
--                                                                            --
--------------------------------------------------------------------------------
with NetFrameworkBase.System.Object;
limited with NetFrameworkBase.System.IO.FileOptions;
limited with NetFrameworkBase.System.Security.AccessControl.FileSecurity;
limited with NetFrameworkBase.System.IO.FileMode;
limited with NetFrameworkBase.System.IO.FileAccess;
limited with NetFrameworkBase.System.IO.FileShare;
limited with NetFrameworkBase.System.IO.FileAttributes;
limited with NetFrameworkBase.System.Security.AccessControl.AccessControlSections;
limited with NetFrameworkBase.System.Text.Encoding;
limited with NetFrameworkBase.System.IO.StreamReader;
limited with NetFrameworkBase.System.IO.StreamWriter;
limited with NetFrameworkBase.System.IO.FileStream;
--------------------------------------------------------------------------------
package NetFrameworkBase.System.IO.File is
   
   type Kind is new NetFrameworkBase.System.Object.Kind with null record;
   type Kind_Ptr is access all Kind;
   type Kind_Array is array(Natural range<>) of Kind_Ptr;
   type Kind_Array_Ptr is access all Kind_Array;
   
      function OpenText
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.IO.StreamReader.Kind_Ptr;
      
      function CreateText
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.IO.StreamWriter.Kind_Ptr;
      
      function AppendText
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.IO.StreamWriter.Kind_Ptr;
      
      procedure Copy
      (
         sourceFileName : NetFrameworkBase.BSTR; 
         destFileName : NetFrameworkBase.BSTR
      )
      ;
      
      procedure Copy
      (
         sourceFileName : NetFrameworkBase.BSTR; 
         destFileName : NetFrameworkBase.BSTR; 
         overwrite : NetFrameworkBase.Boolean
      )
      ;
      
      function Create
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      function Create
      (
         path : NetFrameworkBase.BSTR; 
         bufferSize : NetFrameworkBase.Int32
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      function Create
      (
         path : NetFrameworkBase.BSTR; 
         bufferSize : NetFrameworkBase.Int32; 
         options : NetFrameworkBase.System.IO.FileOptions.Kind
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      function Create
      (
         path : NetFrameworkBase.BSTR; 
         bufferSize : NetFrameworkBase.Int32; 
         options : NetFrameworkBase.System.IO.FileOptions.Kind; 
         fileSecurity : NetFrameworkBase.System.Security.AccessControl.FileSecurity.Kind_Ptr
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      procedure Delete
      (
         path : NetFrameworkBase.BSTR
      )
      ;
      
      function Exists
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Boolean;
      
      function Open
      (
         path : NetFrameworkBase.BSTR; 
         mode : NetFrameworkBase.System.IO.FileMode.Kind
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      function Open
      (
         path : NetFrameworkBase.BSTR; 
         mode : NetFrameworkBase.System.IO.FileMode.Kind; 
         access_x : NetFrameworkBase.System.IO.FileAccess.Kind
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      function Open
      (
         path : NetFrameworkBase.BSTR; 
         mode : NetFrameworkBase.System.IO.FileMode.Kind; 
         access_x : NetFrameworkBase.System.IO.FileAccess.Kind; 
         share : NetFrameworkBase.System.IO.FileShare.Kind
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      procedure SetCreationTime
      (
         path : NetFrameworkBase.BSTR; 
         creationTime : NetFrameworkBase.Date
      )
      ;
      
      procedure SetCreationTimeUtc
      (
         path : NetFrameworkBase.BSTR; 
         creationTimeUtc : NetFrameworkBase.Date
      )
      ;
      
      function GetCreationTime
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Date;
      
      function GetCreationTimeUtc
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Date;
      
      procedure SetLastAccessTime
      (
         path : NetFrameworkBase.BSTR; 
         lastAccessTime : NetFrameworkBase.Date
      )
      ;
      
      procedure SetLastAccessTimeUtc
      (
         path : NetFrameworkBase.BSTR; 
         lastAccessTimeUtc : NetFrameworkBase.Date
      )
      ;
      
      function GetLastAccessTime
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Date;
      
      function GetLastAccessTimeUtc
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Date;
      
      procedure SetLastWriteTime
      (
         path : NetFrameworkBase.BSTR; 
         lastWriteTime : NetFrameworkBase.Date
      )
      ;
      
      procedure SetLastWriteTimeUtc
      (
         path : NetFrameworkBase.BSTR; 
         lastWriteTimeUtc : NetFrameworkBase.Date
      )
      ;
      
      function GetLastWriteTime
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Date;
      
      function GetLastWriteTimeUtc
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Date;
      
      function GetAttributes
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.IO.FileAttributes.Kind;
      
      procedure SetAttributes
      (
         path : NetFrameworkBase.BSTR; 
         fileAttributes : NetFrameworkBase.System.IO.FileAttributes.Kind
      )
      ;
      
      function GetAccessControl
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.Security.AccessControl.FileSecurity.Kind_Ptr;
      
      function GetAccessControl
      (
         path : NetFrameworkBase.BSTR; 
         includeSections : NetFrameworkBase.System.Security.AccessControl.AccessControlSections.Kind
      )
      return NetFrameworkBase.System.Security.AccessControl.FileSecurity.Kind_Ptr;
      
      procedure SetAccessControl
      (
         path : NetFrameworkBase.BSTR; 
         fileSecurity : NetFrameworkBase.System.Security.AccessControl.FileSecurity.Kind_Ptr
      )
      ;
      
      function OpenRead
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      function OpenWrite
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.System.IO.FileStream.Kind_Ptr;
      
      function ReadAllText
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.BSTR;
      
      function ReadAllText
      (
         path : NetFrameworkBase.BSTR; 
         encoding : NetFrameworkBase.System.Text.Encoding.Kind_Ptr
      )
      return NetFrameworkBase.BSTR;
      
      procedure WriteAllText
      (
         path : NetFrameworkBase.BSTR; 
         contents : NetFrameworkBase.BSTR
      )
      ;
      
      procedure WriteAllText
      (
         path : NetFrameworkBase.BSTR; 
         contents : NetFrameworkBase.BSTR; 
         encoding : NetFrameworkBase.System.Text.Encoding.Kind_Ptr
      )
      ;
      
      function ReadAllBytes
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.Byte_Array;
      
      procedure WriteAllBytes
      (
         path : NetFrameworkBase.BSTR; 
         bytes : NetFrameworkBase.Byte_Array
      )
      ;
      
      function ReadAllLines
      (
         path : NetFrameworkBase.BSTR
      )
      return NetFrameworkBase.BSTR_Array;
      
      function ReadAllLines
      (
         path : NetFrameworkBase.BSTR; 
         encoding : NetFrameworkBase.System.Text.Encoding.Kind_Ptr
      )
      return NetFrameworkBase.BSTR_Array;
      
      procedure WriteAllLines
      (
         path : NetFrameworkBase.BSTR; 
         contents : NetFrameworkBase.BSTR_Array
      )
      ;
      
      procedure WriteAllLines
      (
         path : NetFrameworkBase.BSTR; 
         contents : NetFrameworkBase.BSTR_Array; 
         encoding : NetFrameworkBase.System.Text.Encoding.Kind_Ptr
      )
      ;
      
      procedure AppendAllText
      (
         path : NetFrameworkBase.BSTR; 
         contents : NetFrameworkBase.BSTR
      )
      ;
      
      procedure AppendAllText
      (
         path : NetFrameworkBase.BSTR; 
         contents : NetFrameworkBase.BSTR; 
         encoding : NetFrameworkBase.System.Text.Encoding.Kind_Ptr
      )
      ;
      
      procedure Move
      (
         sourceFileName : NetFrameworkBase.BSTR; 
         destFileName : NetFrameworkBase.BSTR
      )
      ;
      
      procedure Replace
      (
         sourceFileName : NetFrameworkBase.BSTR; 
         destinationFileName : NetFrameworkBase.BSTR; 
         destinationBackupFileName : NetFrameworkBase.BSTR
      )
      ;
      
      procedure Replace
      (
         sourceFileName : NetFrameworkBase.BSTR; 
         destinationFileName : NetFrameworkBase.BSTR; 
         destinationBackupFileName : NetFrameworkBase.BSTR; 
         ignoreMetadataErrors : NetFrameworkBase.Boolean
      )
      ;
      
      procedure Decrypt
      (
         path : NetFrameworkBase.BSTR
      )
      ;
      
      procedure Encrypt
      (
         path : NetFrameworkBase.BSTR
      )
      ;
      
end;
