| Bestand :: TEMP Bestand :: TEMP kan de naam en het handvat van een tijdelijk bestand veilig retourneren. |
Download nu |
Bestand :: TEMP Rangschikking & Samenvatting
- Vergunning:
- Perl Artistic License
- Naam uitgever:
- Tim Jenness
- Uitgever website:
- http://search.cpan.org/~tjenness/File-Temp-0.20/Temp.pm
Bestand :: TEMP Tags
Bestand :: TEMP Beschrijving
Bestand: Temp kan de naam en het handvat van een tijdelijk bestand veilig retourneren. Bestand :: TEMP kan naam en handvat van een tijdelijk bestand veilig retourneren. Synopsis Gebruik bestand :: TEMP QW / TEMPFILE TEMPDIR /; $ fh = tempfile (); ($ FH, $ Bestandsnaam) = tempfile (); ($ FH, $ Bestandsnaam) = tempfile ($ sjabloon, dir => $ dir); ($ FH, $ Bestandsnaam) = Tempfile ($ sjabloon, achtervoegsel => '.dat'); ($ FH, $ Bestandsnaam) = TempFile ($ sjabloon, TMPDIR => 1); Binmode ($ FH, ": UTF8"); $ DIR = TEMPDIR (opruimen => 1); ($ FH, $ Bestandsnaam) = TempFile (DIR => $ DIR); Objectinterface: vereisen Bestand :: TEMP; Gebruik bestand :: TEMP (); Gebruik bestand :: TEMP QW /: SEEKBAAR /; $ fh = bestand :: temp-> nieuw (); $ fname = $ fh-> bestandsnaam; $ FH = bestand :: temp-> nieuw (sjabloon => sjabloon); $ fname = $ fh-> bestandsnaam; $ TMP = Bestand :: TEMP-> NIEUW (ontkoppelen => 0, achtervoegsel => '.dat'); Print $ TMP "Sommige datan"; Print "FileName is $ TMPN"; $ TMP-> zoek (0, SEEK_END); de volgende interfaces zijn beschikbaar voor compatibiliteit met bestaande API's. Ze mogen niet worden gebruikt in nieuwe Code.mkTemp Family: gebruik bestand :: TEMP QW /: MKTEMP /; ($ FH, $ Bestand) = MKSTEMP ("TMPFILEXXXXX"); ($ FH, $ Bestand) = Mkstemps ("TMPFilexxxxxx", $ achtervoegsel); $ TMPDIR = MKDTEMP ($ sjabloon); $ UnoPed_File = MKTEMP ($ sjabloon); POSIX-functies: Gebruik bestand :: TEMP QW /: POSIX /; $ bestand = tmpnam (); $ fh = tmpfile (); ($ FH, $ Bestand) = TMPNAM (); Compatibiliteitsfuncties: $ UnoPed_File = Bestand :: TEMP :: TEMPNAM ($ DIR, $ PFX); Vereisten: · Perl
Bestand :: TEMP Gerelateerde software