File

Overview

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:
    • System.String  .NET, .NET Standard 2.0
    • java.lang.String  Cooper
    • RemObjects.Elements.System.String  Island
    • Foundation.NSString  Toffee, ToffeeV2

 

constructor

 

constructor(aPath: not nullable String)

 

File(String! aPath)

 

init(_ aPath: String)

 

File(String! aPath)

Parameters:

  • aPath:

AppendBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method AppendBinary(aFileName: String; Content: ImmutableBinary)

 

static void AppendBinary(String aFileName, ImmutableBinary Content)

 

static func AppendBinary(_ aFileName: String, _ Content: ImmutableBinary)

 

static void AppendBinary(String aFileName, ImmutableBinary Content)

Parameters:

  • aFileName:
  • Content:

AppendBytes .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method AppendBytes(aFileName: String; Content: array of Byte)

 

static void AppendBytes(String aFileName, Byte[] Content)

 

static func AppendBytes(_ aFileName: String, _ Content: Byte...)

 

static void AppendBytes(String aFileName, Byte[] Content)

Parameters:

  • aFileName:
  • Content:

AppendText .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method AppendText(aFileName: String; Content: String)

 

static void AppendText(String aFileName, String Content)

 

static func AppendText(_ aFileName: String, _ Content: String)

 

static void AppendText(String aFileName, String Content)

Parameters:

  • aFileName:
  • Content:

CopyTo (not nullable File, Boolean): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method CopyTo(NewPathAndName: not nullable File; aCloneIfPossible: Boolean): not nullable File

 

File! CopyTo(File! NewPathAndName, Boolean aCloneIfPossible)

 

func CopyTo(_ NewPathAndName: File, _ aCloneIfPossible: Boolean) -> File

 

File! CopyTo(File! NewPathAndName, Boolean aCloneIfPossible)

Parameters:

  • NewPathAndName:
  • aCloneIfPossible:

CopyTo (not nullable Folder, not nullable String, Boolean): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method CopyTo(Destination: not nullable Folder; NewName: not nullable String; aCloneIfPossible: Boolean): not nullable File

 

File! CopyTo(Folder! Destination, String! NewName, Boolean aCloneIfPossible)

 

func CopyTo(_ Destination: Folder, _ NewName: String, _ aCloneIfPossible: Boolean) -> File

 

File! CopyTo(Folder! Destination, String! NewName, Boolean aCloneIfPossible)

Parameters:

  • Destination:
  • NewName:
  • aCloneIfPossible:

CopyTo (not nullable File, not nullable File, Boolean): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method CopyTo(aFileName: not nullable File; NewPathAndName: not nullable File; aCloneIfPossible: Boolean): not nullable File

 

static File! CopyTo(File! aFileName, File! NewPathAndName, Boolean aCloneIfPossible)

 

static func CopyTo(_ aFileName: File, _ NewPathAndName: File, _ aCloneIfPossible: Boolean) -> File

 

static File! CopyTo(File! aFileName, File! NewPathAndName, Boolean aCloneIfPossible)

Parameters:

  • aFileName:
  • NewPathAndName:
  • aCloneIfPossible:

DateCreated .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

property DateCreated: DateTime read;

 

DateTime DateCreated { get; }

 

var DateCreated: DateTime { get{} }

 

DateTime DateCreated { __get; }

DateModified .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

property DateModified: DateTime read write;

 

DateTime DateModified { get; set; }

 

var DateModified: DateTime { get{} set{} }

 

DateTime DateModified { __get; __set; }

Delete .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Delete

 

void Delete()

 

func Delete()

 

void Delete()

Delete (not nullable File) .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method Delete(aFileName: not nullable File)

 

static void Delete(File! aFileName)

 

static func Delete(_ aFileName: File)

 

static void Delete(File! aFileName)

Parameters:

  • aFileName:

Exists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Exists: Boolean

 

Boolean Exists()

 

func Exists() -> Boolean

 

Boolean Exists()

Exists (File): Boolean  virtual Cooper, Toffee

 

static func Exists(_ aFileName: File) -> Boolean

 

static Boolean Exists(File aFileName)

Parameters:

  • aFileName:

Exists (nullable File): Boolean .NET, .NET Standard 2.0, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, ToffeeV2

 

class method Exists(aFileName: nullable File): Boolean

 

static Boolean Exists(File? aFileName)

 

static func Exists(_ aFileName: File?) -> Boolean

Parameters:

  • aFileName:

Extension

 

property Extension: not nullable String read;

 

String! Extension { get; }

 

var Extension: String { get{} }

 

String! Extension { __get; }

FullPath

 

property FullPath: not nullable String read;

 

String! FullPath { get; }

 

var FullPath: String { get{} }

 

String! FullPath { __get; }

Move (not nullable File): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Move(NewPathAndName: not nullable File): not nullable File

 

File! Move(File! NewPathAndName)

 

func Move(_ NewPathAndName: File) -> File

 

File! Move(File! NewPathAndName)

Parameters:

  • NewPathAndName:

Move (not nullable Folder, not nullable String): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Move(DestinationFolder: not nullable Folder; NewName: not nullable String): not nullable File

 

File! Move(Folder! DestinationFolder, String! NewName)

 

func Move(_ DestinationFolder: Folder, _ NewName: String) -> File

 

File! Move(Folder! DestinationFolder, String! NewName)

Parameters:

  • DestinationFolder:
  • NewName:

Move (not nullable File, not nullable File): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method Move(aFileName: not nullable File; NewPathAndName: not nullable File): not nullable File

 

static File! Move(File! aFileName, File! NewPathAndName)

 

static func Move(_ aFileName: File, _ NewPathAndName: File) -> File

 

static File! Move(File! aFileName, File! NewPathAndName)

Parameters:

  • aFileName:
  • NewPathAndName:

Name

 

property Name: not nullable String read;

 

String! Name { get; }

 

var Name: String { get{} }

 

String! Name { __get; }

Open .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Open(Mode: FileOpenMode): not nullable FileHandle

 

FileHandle! Open(FileOpenMode Mode)

 

func Open(_ Mode: FileOpenMode) -> FileHandle

 

FileHandle! Open(FileOpenMode Mode)

Parameters:

  • Mode:

ReadBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method ReadBinary: ImmutableBinary

 

ImmutableBinary ReadBinary()

 

func ReadBinary() -> ImmutableBinary

 

ImmutableBinary ReadBinary()

ReadBinary (String): ImmutableBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadBinary(aFileName: String): ImmutableBinary

 

static ImmutableBinary ReadBinary(String aFileName)

 

static func ReadBinary(_ aFileName: String) -> ImmutableBinary

 

static ImmutableBinary ReadBinary(String aFileName)

Parameters:

  • aFileName:

ReadBytes .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method ReadBytes: array of Byte

 

Byte[] ReadBytes()

 

func ReadBytes() -> Byte...

 

Byte[] ReadBytes()

ReadBytes (String): array of Byte .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadBytes(aFileName: String): array of Byte

 

static Byte[] ReadBytes(String aFileName)

 

static func ReadBytes(_ aFileName: String) -> Byte...

 

static Byte[] ReadBytes(String aFileName)

Parameters:

  • aFileName:

ReadLines .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadLines(aFileName: String; Encoding: Encoding): ImmutableList<String>

 

static ImmutableList<String> ReadLines(String aFileName, Encoding Encoding)

 

static func ReadLines(_ aFileName: String, _ Encoding: Encoding) -> ImmutableList<String>

 

static ImmutableList<String> ReadLines(String aFileName, Encoding Encoding)

Parameters:

  • aFileName:
  • Encoding:

ReadText (Encoding): String .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method ReadText(Encoding: Encoding): String

 

String ReadText(Encoding Encoding)

 

func ReadText(_ Encoding: Encoding) -> String

 

String ReadText(Encoding Encoding)

Parameters:

  • Encoding:

ReadText (String, Encoding): String .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadText(aFileName: String; Encoding: Encoding): String

 

static String ReadText(String aFileName, Encoding Encoding)

 

static func ReadText(_ aFileName: String, _ Encoding: Encoding) -> String

 

static String ReadText(String aFileName, Encoding Encoding)

Parameters:

  • aFileName:
  • Encoding:

Rename (not nullable String): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Rename(NewName: not nullable String): not nullable File

 

File! Rename(String! NewName)

 

func Rename(_ NewName: String) -> File

 

File! Rename(String! NewName)

Parameters:

  • NewName:

Rename (not nullable File, not nullable String): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method Rename(aFileName: not nullable File; NewName: not nullable String): not nullable File

 

static File! Rename(File! aFileName, String! NewName)

 

static func Rename(_ aFileName: File, _ NewName: String) -> File

 

static File! Rename(File! aFileName, String! NewName)

Parameters:

  • aFileName:
  • NewName:

Size .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

property Size: Int64 read;

 

Int64 Size { get; }

 

var Size: Int64 { get{} }

 

Int64 Size { __get; }

WriteBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteBinary(aFileName: String; Content: ImmutableBinary)

 

static void WriteBinary(String aFileName, ImmutableBinary Content)

 

static func WriteBinary(_ aFileName: String, _ Content: ImmutableBinary)

 

static void WriteBinary(String aFileName, ImmutableBinary Content)

Parameters:

  • aFileName:
  • Content:

WriteBytes .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteBytes(aFileName: String; Content: array of Byte)

 

static void WriteBytes(String aFileName, Byte[] Content)

 

static func WriteBytes(_ aFileName: String, _ Content: Byte...)

 

static void WriteBytes(String aFileName, Byte[] Content)

Parameters:

  • aFileName:
  • Content:

WriteLines .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteLines(aFileName: String; Content: ImmutableList<String>; aEncoding: Encoding)

 

static void WriteLines(String aFileName, ImmutableList<String> Content, Encoding aEncoding)

 

static func WriteLines(_ aFileName: String, _ Content: ImmutableList<String>, _ aEncoding: Encoding)

 

static void WriteLines(String aFileName, ImmutableList<String> Content, Encoding aEncoding)

Parameters:

  • aFileName:
  • Content:
  • aEncoding:

WriteText .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteText(aFileName: String; Content: String; aEncoding: Encoding)

 

static void WriteText(String aFileName, String Content, Encoding aEncoding)

 

static func WriteText(_ aFileName: String, _ Content: String, _ aEncoding: Encoding)

 

static void WriteText(String aFileName, String Content, Encoding aEncoding)

Parameters:

  • aFileName:
  • Content:
  • aEncoding:

 

DateCreated .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

property DateCreated: DateTime read;

 

DateTime DateCreated { get; }

 

var DateCreated: DateTime { get{} }

 

DateTime DateCreated { __get; }

DateModified .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

property DateModified: DateTime read write;

 

DateTime DateModified { get; set; }

 

var DateModified: DateTime { get{} set{} }

 

DateTime DateModified { __get; __set; }

Extension

 

property Extension: not nullable String read;

 

String! Extension { get; }

 

var Extension: String { get{} }

 

String! Extension { __get; }

FullPath

 

property FullPath: not nullable String read;

 

String! FullPath { get; }

 

var FullPath: String { get{} }

 

String! FullPath { __get; }

Name

 

property Name: not nullable String read;

 

String! Name { get; }

 

var Name: String { get{} }

 

String! Name { __get; }

Size .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

property Size: Int64 read;

 

Int64 Size { get; }

 

var Size: Int64 { get{} }

 

Int64 Size { __get; }

 

AppendBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method AppendBinary(aFileName: String; Content: ImmutableBinary)

 

static void AppendBinary(String aFileName, ImmutableBinary Content)

 

static func AppendBinary(_ aFileName: String, _ Content: ImmutableBinary)

 

static void AppendBinary(String aFileName, ImmutableBinary Content)

Parameters:

  • aFileName:
  • Content:

AppendBytes .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method AppendBytes(aFileName: String; Content: array of Byte)

 

static void AppendBytes(String aFileName, Byte[] Content)

 

static func AppendBytes(_ aFileName: String, _ Content: Byte...)

 

static void AppendBytes(String aFileName, Byte[] Content)

Parameters:

  • aFileName:
  • Content:

AppendText .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method AppendText(aFileName: String; Content: String)

 

static void AppendText(String aFileName, String Content)

 

static func AppendText(_ aFileName: String, _ Content: String)

 

static void AppendText(String aFileName, String Content)

Parameters:

  • aFileName:
  • Content:

CopyTo (not nullable File, not nullable File, Boolean): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method CopyTo(aFileName: not nullable File; NewPathAndName: not nullable File; aCloneIfPossible: Boolean): not nullable File

 

static File! CopyTo(File! aFileName, File! NewPathAndName, Boolean aCloneIfPossible)

 

static func CopyTo(_ aFileName: File, _ NewPathAndName: File, _ aCloneIfPossible: Boolean) -> File

 

static File! CopyTo(File! aFileName, File! NewPathAndName, Boolean aCloneIfPossible)

Parameters:

  • aFileName:
  • NewPathAndName:
  • aCloneIfPossible:

Delete (not nullable File) .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method Delete(aFileName: not nullable File)

 

static void Delete(File! aFileName)

 

static func Delete(_ aFileName: File)

 

static void Delete(File! aFileName)

Parameters:

  • aFileName:

Exists (File): Boolean  virtual Cooper, Toffee

 

static func Exists(_ aFileName: File) -> Boolean

 

static Boolean Exists(File aFileName)

Parameters:

  • aFileName:

Exists (nullable File): Boolean .NET, .NET Standard 2.0, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, ToffeeV2

 

class method Exists(aFileName: nullable File): Boolean

 

static Boolean Exists(File? aFileName)

 

static func Exists(_ aFileName: File?) -> Boolean

Parameters:

  • aFileName:

Move (not nullable File, not nullable File): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method Move(aFileName: not nullable File; NewPathAndName: not nullable File): not nullable File

 

static File! Move(File! aFileName, File! NewPathAndName)

 

static func Move(_ aFileName: File, _ NewPathAndName: File) -> File

 

static File! Move(File! aFileName, File! NewPathAndName)

Parameters:

  • aFileName:
  • NewPathAndName:

ReadBinary (String): ImmutableBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadBinary(aFileName: String): ImmutableBinary

 

static ImmutableBinary ReadBinary(String aFileName)

 

static func ReadBinary(_ aFileName: String) -> ImmutableBinary

 

static ImmutableBinary ReadBinary(String aFileName)

Parameters:

  • aFileName:

ReadBytes (String): array of Byte .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadBytes(aFileName: String): array of Byte

 

static Byte[] ReadBytes(String aFileName)

 

static func ReadBytes(_ aFileName: String) -> Byte...

 

static Byte[] ReadBytes(String aFileName)

Parameters:

  • aFileName:

ReadLines .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadLines(aFileName: String; Encoding: Encoding): ImmutableList<String>

 

static ImmutableList<String> ReadLines(String aFileName, Encoding Encoding)

 

static func ReadLines(_ aFileName: String, _ Encoding: Encoding) -> ImmutableList<String>

 

static ImmutableList<String> ReadLines(String aFileName, Encoding Encoding)

Parameters:

  • aFileName:
  • Encoding:

ReadText (String, Encoding): String .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method ReadText(aFileName: String; Encoding: Encoding): String

 

static String ReadText(String aFileName, Encoding Encoding)

 

static func ReadText(_ aFileName: String, _ Encoding: Encoding) -> String

 

static String ReadText(String aFileName, Encoding Encoding)

Parameters:

  • aFileName:
  • Encoding:

Rename (not nullable File, not nullable String): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method Rename(aFileName: not nullable File; NewName: not nullable String): not nullable File

 

static File! Rename(File! aFileName, String! NewName)

 

static func Rename(_ aFileName: File, _ NewName: String) -> File

 

static File! Rename(File! aFileName, String! NewName)

Parameters:

  • aFileName:
  • NewName:

WriteBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteBinary(aFileName: String; Content: ImmutableBinary)

 

static void WriteBinary(String aFileName, ImmutableBinary Content)

 

static func WriteBinary(_ aFileName: String, _ Content: ImmutableBinary)

 

static void WriteBinary(String aFileName, ImmutableBinary Content)

Parameters:

  • aFileName:
  • Content:

WriteBytes .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteBytes(aFileName: String; Content: array of Byte)

 

static void WriteBytes(String aFileName, Byte[] Content)

 

static func WriteBytes(_ aFileName: String, _ Content: Byte...)

 

static void WriteBytes(String aFileName, Byte[] Content)

Parameters:

  • aFileName:
  • Content:

WriteLines .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteLines(aFileName: String; Content: ImmutableList<String>; aEncoding: Encoding)

 

static void WriteLines(String aFileName, ImmutableList<String> Content, Encoding aEncoding)

 

static func WriteLines(_ aFileName: String, _ Content: ImmutableList<String>, _ aEncoding: Encoding)

 

static void WriteLines(String aFileName, ImmutableList<String> Content, Encoding aEncoding)

Parameters:

  • aFileName:
  • Content:
  • aEncoding:

WriteText .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

class method WriteText(aFileName: String; Content: String; aEncoding: Encoding)

 

static void WriteText(String aFileName, String Content, Encoding aEncoding)

 

static func WriteText(_ aFileName: String, _ Content: String, _ aEncoding: Encoding)

 

static void WriteText(String aFileName, String Content, Encoding aEncoding)

Parameters:

  • aFileName:
  • Content:
  • aEncoding:

 

constructor

 

constructor(aPath: not nullable String)

 

File(String! aPath)

 

init(_ aPath: String)

 

File(String! aPath)

Parameters:

  • aPath:

CopyTo (not nullable File, Boolean): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method CopyTo(NewPathAndName: not nullable File; aCloneIfPossible: Boolean): not nullable File

 

File! CopyTo(File! NewPathAndName, Boolean aCloneIfPossible)

 

func CopyTo(_ NewPathAndName: File, _ aCloneIfPossible: Boolean) -> File

 

File! CopyTo(File! NewPathAndName, Boolean aCloneIfPossible)

Parameters:

  • NewPathAndName:
  • aCloneIfPossible:

CopyTo (not nullable Folder, not nullable String, Boolean): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method CopyTo(Destination: not nullable Folder; NewName: not nullable String; aCloneIfPossible: Boolean): not nullable File

 

File! CopyTo(Folder! Destination, String! NewName, Boolean aCloneIfPossible)

 

func CopyTo(_ Destination: Folder, _ NewName: String, _ aCloneIfPossible: Boolean) -> File

 

File! CopyTo(Folder! Destination, String! NewName, Boolean aCloneIfPossible)

Parameters:

  • Destination:
  • NewName:
  • aCloneIfPossible:

Delete .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Delete

 

void Delete()

 

func Delete()

 

void Delete()

Exists .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Exists: Boolean

 

Boolean Exists()

 

func Exists() -> Boolean

 

Boolean Exists()

Move (not nullable File): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Move(NewPathAndName: not nullable File): not nullable File

 

File! Move(File! NewPathAndName)

 

func Move(_ NewPathAndName: File) -> File

 

File! Move(File! NewPathAndName)

Parameters:

  • NewPathAndName:

Move (not nullable Folder, not nullable String): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Move(DestinationFolder: not nullable Folder; NewName: not nullable String): not nullable File

 

File! Move(Folder! DestinationFolder, String! NewName)

 

func Move(_ DestinationFolder: Folder, _ NewName: String) -> File

 

File! Move(Folder! DestinationFolder, String! NewName)

Parameters:

  • DestinationFolder:
  • NewName:

Open .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Open(Mode: FileOpenMode): not nullable FileHandle

 

FileHandle! Open(FileOpenMode Mode)

 

func Open(_ Mode: FileOpenMode) -> FileHandle

 

FileHandle! Open(FileOpenMode Mode)

Parameters:

  • Mode:

ReadBinary .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method ReadBinary: ImmutableBinary

 

ImmutableBinary ReadBinary()

 

func ReadBinary() -> ImmutableBinary

 

ImmutableBinary ReadBinary()

ReadBytes .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method ReadBytes: array of Byte

 

Byte[] ReadBytes()

 

func ReadBytes() -> Byte...

 

Byte[] ReadBytes()

ReadText (Encoding): String .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method ReadText(Encoding: Encoding): String

 

String ReadText(Encoding Encoding)

 

func ReadText(_ Encoding: Encoding) -> String

 

String ReadText(Encoding Encoding)

Parameters:

  • Encoding:

Rename (not nullable String): not nullable File .NET, .NET Standard 2.0, Cooper, Island-Android, Island-iOS, Island-iOS Simulator-x86_64, Island-macOS-x86_64, Island-tvOS, Island-tvOS Simulator-x86_64, Island-Ubuntu, Island-watchOS, Island-watchOS Simulator, Island-Windows, Toffee, ToffeeV2

 

method Rename(NewName: not nullable String): not nullable File

 

File! Rename(String! NewName)

 

func Rename(_ NewName: String) -> File

 

File! Rename(String! NewName)

Parameters:

  • NewName: