MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuel d'utilisateur Page 49

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 155
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 48
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
46
Method summary
File.isFile Read-only; a boolean value indicating whether the file is a regular data file (true) or not
(false).
File.isOpen Read-only; a boolean value indicating whether the file has been successfully opened and is
still open (true) or not (false).
File.lastModified Read-only; a Date object containing the time the file was last modified.
File.length Read-only; for a directory, the number of files in the directory, not counting the current
directory and parent directory entries; for a file, the number of bytes in the file.
File.mode Read-only; the mode of an open file.
File.name Read-only; a string indicating the name of the file.
File.position The current offset in the file.
File.type Read-only; a string specifying the type of data or encoding used when a file is opened.
Method Description
File.close() Closes the file.
File.copyTo() Copies a file to a different location or copies it to the same location with a different filename.
File.eof() Returns a boolean value indicating whether the file pointer is at the end of file (true) or not
(false).
File.flush() Flushes the output buffers of a file.
File.list() If the file is a directory, lists the files in the directory.
File.mkdir() Creates a directory.
File.open() Opens a file so that you can read from it or write to it.
File.read() Reads the specified number of characters from a file and returns a string.
File.readAll() Reads the file after the location of the file pointer and returns an array with an element for
each line of the file.
File.readByte() Reads the next byte from the file and returns the numeric value of the next byte, or -1 if the
operation fails.
File.readln() Reads the next line from the file and returns it as a string.
File.remove() Removes the file or directory pointed to by the File object.
File.renameTo() Moves or renames a file.
File.seek() Skips a specified number of bytes and returns the new file position.
File.toString() Returns the path to the File object.
File.write() Writes data to a file.
File.writeAll() Takes an array as a parameter and calls the File.writeln() method on each element in
the array.
File.writeByte() Writes a byte to a file.
File.writeln() Writes data to a file and adds a platform-dependent end-of-line character after outputting
the last parameter.
Property Description
Vue de la page 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 154 155

Commentaires sur ces manuels

Pas de commentaire