fr:code:data:file
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
fr:code:data:file [2012/03/22 12:09] – wismerheal | fr:code:data:file [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== File [En cours de Traduction Wismerheal][WSL] | + | ====== File ====== |
L' | L' | ||
Ligne 12: | Ligne 12: | ||
</ | </ | ||
- | === Example | + | === Exemple |
Créer l' | Créer l' | ||
<code javascript> | <code javascript> | ||
Ligne 68: | Ligne 68: | ||
* createDestinationDirectory - (bool) le chemin de destination devrait-il être créé s'il n' | * createDestinationDirectory - (bool) le chemin de destination devrait-il être créé s'il n' | ||
- | === Returns | + | === Renvoie |
- | * (null) | + | * (null) |
=== Exceptions === | === Exceptions === | ||
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
- | * (DirectoryCreationError) | + | * (DirectoryCreationError) |
- | * (DirectoryDoesntExistError) | + | * (DirectoryDoesntExistError) |
- | * (MoveError) | + | * (MoveError) |
- | * (MoveAbortedError) | + | * (MoveAbortedError) |
==== rename ==== | ==== rename ==== | ||
- | This function is an alias of the [[# | + | Cette fonction est un alias de la fonction |
==== remove ==== | ==== remove ==== | ||
- | Remove a file. | + | Supprimer un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
File.remove(filename); | File.remove(filename); | ||
Ligne 93: | Ligne 93: | ||
=== Arguments === | === Arguments === | ||
- | - filename - (string) | + | - filename - (string) |
- | - options - (object) [//Added in Actionaz 3.0.1.//] | + | - options - (object) [//Ajouté dans Actionaz 3.0.1.//] |
- | * noErrorDialog - (bool) | + | * noErrorDialog - (bool) |
- | * noConfirmDialog - (bool) | + | * noConfirmDialog - (bool) |
- | * noProgressDialog - (bool) | + | * noProgressDialog - (bool) |
- | * allowUndo - (bool) | + | * allowUndo - (bool) |
- | === Returns | + | === Renvoie |
- | * (null) | + | * (null) |
=== Exceptions === | === Exceptions === | ||
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
- | * (RemoveError) | + | * (RemoveError) |
- | * (RemoveAbortedError) | + | * (RemoveAbortedError) |
===== Methods ===== | ===== Methods ===== | ||
==== open ==== | ==== open ==== | ||
- | Opens a file. | + | Ouvrir un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.open(filename, | myObject.open(filename, | ||
Ligne 119: | Ligne 119: | ||
=== Arguments === | === Arguments === | ||
- | - filename - (string) | + | - filename - (string) |
- | - openMode - ([[# | + | - openMode - ([[# |
=== Returns === | === Returns === | ||
- | * (File) | + | * (File) |
=== Exceptions === | === Exceptions === | ||
- | * (CannotOpenFileError) | + | * (CannotOpenFileError) |
==== write ==== | ==== write ==== | ||
- | Write raw data to this File. | + | Écrire une série de données sur un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.write(data); | myObject.write(data); | ||
Ligne 140: | Ligne 140: | ||
=== Arguments === | === Arguments === | ||
- | - data - ([[en: | + | - data - ([[en: |
- | - other - (mixed) | + | - other - (mixed) |
- | === Returns | + | === Renvoie |
- | * (File) | + | * (File) |
=== Exceptions === | === Exceptions === | ||
- | * (WriteFailedError) | + | * (WriteFailedError) |
==== writeText ==== | ==== writeText ==== | ||
- | Write text to this File. | + | Écrire du texte sur un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.writeText(text); | myObject.writeText(text); | ||
Ligne 161: | Ligne 161: | ||
=== Arguments === | === Arguments === | ||
- | - text - (string) | + | - text - (string) |
- | - encoding - ([[en: | + | - encoding - ([[en: |
- | === Returns | + | === Renvoie |
- | * (File) | + | * (File) |
=== Exceptions === | === Exceptions === | ||
- | * (WriteFailedError) | + | * (WriteFailedError) |
==== read ==== | ==== read ==== | ||
- | Read raw data from this File. | + | Lire une série de données à partir d'un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.read(); | myObject.read(); | ||
</ | </ | ||
- | === Returns | + | === Renvoie |
- | * ([[en: | + | * ([[en: |
==== readText ==== | ==== readText ==== | ||
- | Read text from this File. | + | Lire du texte à partir d'un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.readText(); | myObject.readText(); | ||
Ligne 193: | Ligne 193: | ||
=== Arguments === | === Arguments === | ||
- | - encoding - ([[en: | + | - encoding - ([[en: |
- | === Returns | + | === Renvoie |
- | * (string) | + | * (string) |
==== close ==== | ==== close ==== | ||
- | Close this file. | + | Fermer un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.close(); | myObject.close(); | ||
</ | </ | ||
- | === Returns | + | === Renvoie |
- | * (File) | + | * (File) |
==== copy ==== | ==== copy ==== | ||
- | Copy this file to another location. | + | Copier ce fichier vers une autre destination. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.copy(destination); | myObject.copy(destination); | ||
Ligne 221: | Ligne 221: | ||
=== Arguments === | === Arguments === | ||
- | - destination - (string) | + | - destination - (string) |
- | - options - (object) [//Added in Actionaz 3.0.1.//] | + | - options - (object) [//Ajouté dans Actionaz 3.0.1.//] |
- | * noErrorDialog - (bool) | + | * noErrorDialog - (bool) |
- | * noConfirmDialog - (bool) | + | * noConfirmDialog - (bool) |
- | * noProgressDialog - (bool) | + | * noProgressDialog - (bool) |
- | * createDestinationDirectory - (bool) | + | * createDestinationDirectory - (bool) |
- | === Returns | + | === Renvoie |
- | * (File) | + | * (File) |
=== Exceptions === | === Exceptions === | ||
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
- | * (DirectoryCreationError) | + | * (DirectoryCreationError) |
- | * (DirectoryDoesntExistError) | + | * (DirectoryDoesntExistError) |
- | * (CopyError) | + | * (CopyError) |
- | * (CopyAbortedError) copy aborted | + | * (CopyAbortedError) copy annulée |
==== move ==== | ==== move ==== | ||
- | Move this file to another location. | + | Déplacer un fichier vers une autre destination. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.move(destination); | myObject.move(destination); | ||
Ligne 250: | Ligne 250: | ||
=== Arguments === | === Arguments === | ||
- | - destination - (string) | + | - destination - (string) |
- | - options - (object) [//Added in Actionaz 3.0.1.//] | + | - options - (object) [//Ajouté dans Actionaz 3.0.1.//] |
- | * noErrorDialog - (bool) | + | * noErrorDialog - (bool) |
- | * noConfirmDialog - (bool) | + | * noConfirmDialog - (bool) |
- | * noProgressDialog - (bool) | + | * noProgressDialog - (bool) |
- | * createDestinationDirectory - (bool) | + | * createDestinationDirectory - (bool) |
- | === Returns | + | === Renvoie |
- | * (File) | + | * (File) |
=== Exceptions === | === Exceptions === | ||
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
- | * (DirectoryCreationError) | + | * (DirectoryCreationError) |
- | * (DirectoryDoesntExistError) | + | * (DirectoryDoesntExistError) |
- | * (MoveError) | + | * (MoveError) |
- | * (MoveAbortedError) | + | * (MoveAbortedError) |
==== rename ==== | ==== rename ==== | ||
- | This method is an alias of the [[# | + | Cette méthode est un alias de la méthode |
==== remove ==== | ==== remove ==== | ||
- | Remove this file. | + | Supprimer un fichier. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
myObject.remove(); | myObject.remove(); | ||
Ligne 282: | Ligne 282: | ||
=== Arguments === | === Arguments === | ||
- | - options - (object) [//Added in Actionaz 3.0.1.//] | + | - options - (object) [//Ajouté dans Actionaz 3.0.1.//] |
- | * noErrorDialog - (bool) | + | * noErrorDialog - (bool) |
- | * noConfirmDialog - (bool) | + | * noConfirmDialog - (bool) |
- | * noProgressDialog - (bool) | + | * noProgressDialog - (bool) |
- | * allowUndo - (bool) | + | * allowUndo - (bool) |
- | === Returns | + | === Renvoie |
- | * (File) | + | * (File) |
=== Exceptions === | === Exceptions === | ||
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
- | * (RemoveError) | + | * (RemoveError) |
- | * (RemoveAbortedError) | + | * (RemoveAbortedError) |
===== Enumerations ===== | ===== Enumerations ===== | ||
==== OpenMode ==== | ==== OpenMode ==== | ||
- | File open mode. | + | Mode ouverture de Fichier. |
=== Values === | === Values === | ||
- | - ReadOnly: | + | - ReadOnly: |
- | - WriteOnly: | + | - WriteOnly: |
- | - ReadWrite: | + | - ReadWrite: |
- | - Append: | + | - Append: |
- | - Truncate: | + | - Truncate: |
- | - Text: file opened in text mode | + | - Text: fichier ouvert en mode texte |
- | - Unbuffered: | + | - Unbuffered: |
=== Notes === | === Notes === | ||
- | This is a flag enumeration, that means that you can use multiple values using the | operator. | + | C'est une suite d’indicateur, ce qui signifie que vous pouvez utilisez plusieurs valeurs en utilisant l' |
Example: | Example: | ||
<code javascript> | <code javascript> | ||
myObject.open(" | myObject.open(" | ||
</ | </ |
fr/code/data/file.1332418192.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)