• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/16

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

16 Cards in this Set

  • Front
  • Back

output file

files to which an application writes data

input file

files that are read by the computer

sequential access file

used for selecting, inserting, deleting and updating data in a database

text files

another name for sequential file

stream of characters

programmers refer sequence of characters to

stream writer object

used to write a stream of characters to a sequential access file

create text method

used with a StreamWriter variable to open a sequential access file for output




-when a file is open for output, the computer creates a new, empty file to which data can be written


-if the file already exists, the computer erases content of the file before writing any data to it

appendtext method

used with a StreamWriter variable to open a sequential access file for append

write method

used with a StreamWriter variable to write data to a sequential access file; differs from the WriteLine method in that it does not write a newline character after the data

writeline method

used with a StreamWriter variable to write data to a sequential access file; differs from the Write method in that it writes a newline character after the data

close method

closes an output sequential access file

open text method

used after declaring a stream reader variable, its used to open a sequential file for input, which automatically creates a stream Reader object




-if computer finds the file, it opens the file for input


-if computer does not find the file, a run time error occurs

exists method

returns the boolean value true if the file exists otherwise it returns false

peek method

used with a StreamReader variable to determine whether a file containsanother character to read


-if found, it will return the character otherwise it returns a "-1"

line

a sequence (stream) of characters followed by the newline character

read line method

used with a StreamReader variable to read a line of text from a sequential access file




and it returns a string that contains only the sequence of characters in the current line