New

Long-Term Learning

Learn efficiently and remember over time.

Start Long-Term Learning

Get personalized study reminders at intervals optimized for better retention.
Track your progress on this set by creating a folder
Or add to an existing folder

Add this set to a folder

  • Symbol(s) used to open a file for writing

    >

    Symbol(s) used to open a file for appending

    >>

    Symbol(s) used to open a file for reading and writing, without truncating the file

    +<

    Symbol(s) used to open a file for reading and writing, truncating the file first

    +>

    Keyword Used to exit a program if an error occurs

    die

    Syntax to use print to write "this is text" to a file, via filehandle FOO

    print FOO "this is text";

    Syntax to close file handle FOO

    close(FOO);

    Open filename.txt for reading, via filehandle FOO

    Open(FOO, "filename.txt");

    Syntax to read 256 bytes from filehandle FOO, beginning at byte number 16, and held in buffer $buffer

    read (FOO, $buffer, 256, 16);

    Function to return position of file pointer within a filehandle FOO

    tell(FOO);

    Function to return a single character from filehandle FOO

    getc(FOO);

    Function to position a file pointer within filehandle FOO, at byte number 256, relative to start of file

    seek(FOO, 256, 0);

    Function to position a file pointer within filehandle FOO, at byte number 256, relative to end of file

    seek(FOO, 256, 2);

    Function to position a file pointer within filehandle FOO, at byte number 256, relative to current position of file pointer

    seek(FOO, 256, 1);

    Function that returns 13-element list of data about a particular file.

    stat

    Function that returns 13-element list of data about a symbolic link*

    *on operating systems that support symbolic links

    lstat

    Operator to determine if a file is readable

    -r

    Operator to determine if a file is writeable

    -w

    Operator to determine if a file exists

    -e

    Please allow access to your computer’s microphone to use Voice Recording.

    Having trouble? Click here for help.

    We can’t access your microphone!

    Click the icon above to update your browser permissions above and try again

    Example:

    Reload the page to try again!

    Reload

    Press Cmd-0 to reset your zoom

    Press Ctrl-0 to reset your zoom

    It looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.

    Please upgrade Flash or install Chrome
    to use Voice Recording.

    For more help, see our troubleshooting page.

    Your microphone is muted

    For help fixing this issue, see this FAQ.

    Star this term

    You can study starred terms together

    NEW! Voice Recording

    This is a Plus feature