Namespace System
Namespace IO


Enum FileAccess
	Read = -2147483648 'GENERIC_READ
	ReadWrite = -1073741824 'GENERIC_READ Or GENERIC_WRITE
	Write = 1073741824' GENERIC_WRITE
End Enum

Enum FileAttributes
	Archive           = 32 'FILE_ATTRIBUTE_ARCHIVE
	Compressed        = 2048 'FILE_ATTRIBUTE_COMPRESSED
	Device            = 64 'FILE_ATTRIBUTE_DEVICE
	Directory         = 16 'FILE_ATTRIBUTE_DIRECTORY
	Encrypted         = 16384 'FILE_ATTRIBUTE_ENCRYPTED
	Hidden            = 2 'FILE_ATTRIBUTE_HIDDEN
	Normal            = 128 'FILE_ATTRIBUTE_NORMAL
	NotContentIndexed = 8192 'FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
	Offline           = 4096 'FILE_ATTRIBUTE_OFFLINE
	ReadOnly          = 1 'FILE_ATTRIBUTE_READONLY
	ReparsePoint      = 1024 'FILE_ATTRIBUTE_REPARSE_POINT
	SparseFile        = 512 'FILE_ATTRIBUTE_SPARSE_FILE
	System            = 4 'FILE_ATTRIBUTE_SYSTEM
	Temporary         = 256 'FILE_ATTRIBUTE_TEMPORARY
End Enum

Enum FileMode
	Append = 4 'OPEN_ALWAYS
	Create = 2 'CREATE_ALWAYS
	CreateNew = 1 'CREATE_NEW
	Open = 3 'OPEN_EXISTING
	OpenOrCreate = 4 'OPEN_ALWAYS
	Truncate = 5 'TRUNCATE_EXISTING
End Enum

Enum FileShare
	None = 0
	Read = FILE_SHARE_READ
	Write = FILE_SHARE_WRITE
	ReadWrite = FILE_SHARE_READ Or FILE_SHARE_WRITE
	DeleteFile = FILE_SHARE_DELETE
End Enum

Class File
Public

	Static Sub AppendAllText( path As String, contents As String )
		' TODO: ŽÀ‘•
	End Sub

/*	Static Sub AppendAllText( path As String, contents As String, encoding As Encoding )
		' TODO: ŽÀ‘•
	End Sub */

	Static Function AppendText( path As String ) As StreamWriter
		' TODO: ŽÀ‘•
	End Function

	Static Sub Copy( sourceFileName As String, destFileName As String )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub Copy( sourceFileName As String, destFileName As String, overwrite As Boolean )
		' TODO: ŽÀ‘•
	End Sub

	Static Function Create( path As String ) As FileStream
		' TODO: ŽÀ‘•
	End Function

	Static Function Create( path As String, bufferSize As Long ) As FileStream
		' TODO: ŽÀ‘•
	End Function

/*	Static Function Create( path As String, bufferSize As Long, options As FileOptions ) As FileStream
		' TODO: ŽÀ‘•
	End Function */

/*	Static Function Create( path As String, bufferSize As Long, options As FileOptions, fileSecurity As FileSecurity ) As FileStream
		' TODO: ŽÀ‘•
	End Function */

	Static Function CreateText( path As String ) As StreamWriter
		' TODO: ŽÀ‘•
	End Function

	Static Sub Decrypt( path As String )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub DeleteFile( path As String )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub Encrypt( path As String )
		' TODO: ŽÀ‘•
	End Sub

	Static Function Exists( path As String ) As Boolean
		' TODO: ŽÀ‘•
	End Function

/*	Static Function GetAccessControl( path As String ) As FileSecurity
		' TODO: ŽÀ‘•
	End Function */

/*	Static Function GetAccessControl( path As String, includeSections As AccessControlSections ) As FileSecurity
		' TODO: ŽÀ‘•
	End Function */

	Static Function GetAttributes( path As String ) As FileAttributes
		' TODO: ŽÀ‘•
	End Function

	Static Function GetCreationTime( path As String ) As DateTime
		' TODO: ŽÀ‘•
	End Function

	Static Function GetCreationTimeUtc( path As String ) As DateTime
		' TODO: ŽÀ‘•
	End Function

	Static Function GetLastAccessTime( path As String ) As DateTime
		' TODO: ŽÀ‘•
	End Function

	Static Function GetLastAccessTimeUtc( path As String ) As DateTime
		' TODO: ŽÀ‘•
	End Function

	Static Function GetLastWriteTime( path As String ) As DateTime
		' TODO: ŽÀ‘•
	End Function

	Static Function GetLastWriteTimeUtc( path As String ) As DateTime
		' TODO: ŽÀ‘•
	End Function

	Static Sub Move( sourceFileName As String, destFileName As String )
		' TODO: ŽÀ‘•
	End Sub

	Static Function Open( path As String, mode As FileMode ) As FileStream
		' TODO: ŽÀ‘•
	End Function

	Static Function Open( path As String, mode As FileMode, access As FileAccess ) As FileStream
		' TODO: ŽÀ‘•
	End Function

	Static Function Open( path As String, mode As FileMode, access As FileAccess, share As FileShare ) As FileStream
		' TODO: ŽÀ‘•
	End Function

	Static Function OpenRead( path As String ) As FileStream
		' TODO: ŽÀ‘•
	End Function

'	Static Function OpenText( path As String ) As StreamReader
		' TODO: ŽÀ‘•
'	End Function

	Static Function OpenWrite( path As String ) As FileStream
		' TODO: ŽÀ‘•
	End Function

	Static Function ReadAllBytes( path As String ) As *Byte
		' TODO: ŽÀ‘•
	End Function

/*	Static Function ReadAllLines( path As String ) As Strings
		' TODO: ŽÀ‘•
	End Function */

/*	Static Function ReadAllLines( path As String, encoding As Encoding ) As Strings
		' TODO: ŽÀ‘•
	End Function */

	Static Function ReadAllText( path As String ) As String
		' TODO: ŽÀ‘•
	End Function

/*	Static Function ReadAllText( path As String, encoding As Encoding ) As String
		' TODO: ŽÀ‘•
	End Function */

	Static Sub Replace( sourceFileName As String, destinationFileName As String, destinationBackupFileName As String )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub Replace( sourceFileName As String, destinationFileName As String, destinationBackupFileName As String, ignoreMetadataErrors As Boolean )
		' TODO: ŽÀ‘•
	End Sub

/*	Static Sub SetAccessControl( path As String, fileSecurity As FileSecurity )
		' TODO: ŽÀ‘•
	End Sub */

	Static Sub SetAttributes( path As String, fileAttributes As FileAttributes )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub SetCreationTime( path As String, creationTime As DateTime )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub SetCreationTimeUtc( path As String, creationTime As DateTime )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub SetLastAccessTime( path As String, lastAccessTime As DateTime )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub SetLastAccessTimeUtc( path As String, lastAccessTimeUtc As DateTime )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub SetLastWriteTime( path As String, lastWriteTime As DateTime )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub SetLastWriteTimeUtc( path As String, lastWriteTimeUtc As DateTime )
		' TODO: ŽÀ‘•
	End Sub

	Static Sub WriteAllBytes( path As String, bytes As *Byte )
		' TODO: ŽÀ‘•
	End Sub

/*	Static Sub WriteAllLines( path As String, contents As Strings )
		' TODO: ŽÀ‘•
	End Sub */

/*	Static Sub WriteAllLines( path As String, contents As Strings, encoding As Enconding )
		' TODO: ŽÀ‘•
	End Sub */

	Static Sub WriteAllText( path As String, contents As String )
		' TODO: ŽÀ‘•
	End Sub

/*	Static Sub WriteAllText( path As String, contents As String, encoding As Enconding )
		' TODO: ŽÀ‘•
	End Sub */

End Class


End Namespace
End Namespace
