Ovido
Lingua
  • Inglese
  • Spagnolo
  • Francese
  • Portoghese
  • Tedesco
  • Italiano
  • Olandese
  • Svedese
Testo
  • Maiuscole

Utente

  • Accedi
  • Crea account
  • Passa a Premium
Ovido
  • Home
  • Accedi
  • Crea account

c# SEASON TWO FINAL CHAP 15 pt 1

StreamReader inFile = new StreamReader("name.txt");
while ((inValue = inFile.ReadLine()) != null)


What does the above statement do?

Reads every line from an input file.

When writing text files, if you add true to the constructor for the Append argument, ____.

lines are added onto the end of the file

The ____ class has implementations for Write( ) and WriteLine( ) methods similar to the Console class methods.

StreamWriter

StreamReader inFile = new StreamReader("name.txt");
while ((inValue = inFile.ReadLine()) != null)


With the above code segment, how could you programmatically avoid having a FileNotFoundException or DirectoryNotFoundException exception thrown?

invoke File.Exists( ) before the while loop

Which of the following is an abstract class that cannot be instantiated?

FileDialog

StreamReader inFile = new StreamReader("name.txt");
while ((inValue = inFile.ReadLine()) != null)


Using the above segment of code, inValue would be defined as what type of data?

string

The keyword ____ can be used to define a scope for an object such that the CLR automatically disposes of, or releases, the resource when the object goes out of scope.

using

Which method is used to cause the dialog boxes to open?

ShowDialog( )

Which of the following is a static member of the Directory class?

Exists( )

Parent and Root are two key properties of which class?

DirectoryInfo

StreamWrite outputFile = new StreamWriter("someOutputFileName");
StreamReader inputFile = new StreamReader("someInputFileName");


If you browse using Windows Explorer or Computer, the physical file that already exists before the two statements from above are executed is ____.

someInputFile

Which exception is thrown when an attempt is made to access a file that does not exist?

FileNotFoundException

Which of the following class belongs to the System.IO namespace?

FileNotFoundException

The most appropriate programmer-defined enumeration identifier for a card's color that has field values of Red, Blue, Yellow, Black, and Green would be ____.

CardColor

The FileDialog class has a property called ____, which is used by both the OpenFileDialog and SaveFileDialog classes to set or get the name of the file using a dialog box.

FileName

All attempts to access text files should be enclosed inside if...else blocks to check forexceptions.

FALSE

The constructor for the StreamWriter class is overloaded to include a Boolean variable indicating whether this is the first time the file was accessed.

FALSE

When a method uses a(n) ____________ modifier, the method belongs to the class itself, not to a specific object of the class and is thus called using the class name.

static

A(n) ____________ is considered a named collection of bytes having persistent or lasting storage.

data file

A(n) ____________ is a special form of value type that supplies names for the values.

enumeration

StreamWriter outputFile = new StreamWriter("someOutputFileName");
StreamReader inputFile = new StreamReader("someInputFileName");


The identifier that can be referenced in a WriteLine( ) method with the declaration above is ____.

outputFile

In order to remove a StreamWriter object named writer, which is associated with a file in the project directory called "test.dta", you would write ____.

File.Delete(writer)

The gray section below the Form object where dialog objects are placed in Visual Studio is called the ____.

component tray

When you place an @ in front of a string, the string becomes a(n) ____.

verbatim string

Objects of streams can be wrapped with ____ objects to improve the speed and performance of file-handling operations.

BufferedStream

The StreamReader's Peek( ) method returns the next available character but does not consume it.

TRUE

The StreamReader class is used to create text files.

FALSE

Quiz
polcon3 4 estate
c# SEASON TWO FINAL CHAP 14 pt 3
17.2 Openbaar vervoer
c# SEASON TWO FINAL CHAP 14 pt 2
polcon2
c# SEASON TWO FINAL CHAP 14 pt 1
Riptide/formation
c# SEASON TWO FINAL CHAP 12 pt 2
media theorists
Art App
c# SEASON TWO FINAL CHAP 12 pt 1
historia
animal transport
17.1 Personenverkeer
5. Financial Instruments
ancient china
Pride & PrejudiceP&P
새 단어 15과 3급
Unité 4 Volet 3
L3 S2 : Histoire du droit social : Partie 1 : Chap 1 : rév libérale (2)
GLANDULAS SALIVALES
DISFONIA
Ingles- Wake me up song the weekend
მულტიკულტურული განათლება
Stability of Monarchy
services
atomsYear 9 content early GCSE content
ICCFla révision pour l'examen final
Premier courant: 1534-1900 - Les écrits de la Nouvelle-France
Carbohydrates
laapal
Atomic structure
particle model
mains electricity
paekisonne✅
Test tradizionale
Philo
SNC
wisowas versteht man unter der GiR und welche Bedeutung hat sie - volkswirtschaftliche Gesamtrechnung - erstellt ein quantitatives Gesamtbild des wirtschaft. - Messergebnisse ermöglichen einen Uperblick ü...
bb
Hidroterapia
Random words
jobs
RINOSINUSITIS
vocab test RIPA
Oncología Parcial
micro
biology
PY2507.6 ~ {The Frontal lobe syndrome + Agnosia & Amnesia}
INCONSCIENT
CONSCIENCE
geschichte modul 2
Natuurwetenschappen
escriptors catalans
2. Schularbeit spanisch
Läxa v.18 (2)
Géo: Le tourisme international
EMC: Comment devient-on français ?
Textbindning
Trastorns vasculars
juridik
N.Coulon
H. Mengue-Topio
physik
B.Vilette
M.Danet
Y. Courbois
TP
krevos sutartis
Echauffement 2
Echauffement 2
Td 2
Td
Psychologie
Socio
Aerobie
Echauffement
Engelska Skriv
Mein Tagesablaufmeans daily routine
vardagliga verb
LF5
spanska ord
Biomecanique 5
Czasowniki i zdania
Biomecanique 4
Biomecanique 3
Biomecanique 2
Biomecanique 1
Bio-chimie 3
Bio-Chimie 2
bio-chimie 1
Educazione alla salute
PY2507.5 2.0 ~ {Impairments of obj manipulation&recognition: Apraxia & V agnosia
Parcial
new words
Músculos da escápula
maatschappijkunde
phrase
handmaids chapters
Literatura hispanoamericana contemporánea
psicologia cognitiva
La novela española a partir de 1975
La narrativa desde 1940 hasta 1975
hej
History dates
L3 S2 : Histoire du droit social : Introduction (1)
dernier voc
Läxa v.18
psychologie
weg beschreibung
l’elettricità e il funzionamento dei circuiti elettrici.
19
Code Radio
Herrscher
revision
geografiageografia
make take and do
phrasal verbs
UTS
LUxembourg
EPISTAXIS
werkwoorden frans
VERTIGO
ANATOMIA DE NARIZ Y SNP
Kemi
latin 1st and 2nd decl. adjectives
PrüfungDemokratie, Sozialversicherungen, Gewaltenteilung etc.
Redação Oficial 📩Questoes das video aulas, apostilas e outros
lekpedagogik
CCNP1 ARS110
digestion
digestion
nutrition
nutrition
nerveux
nerveux
nerveux
nerveux
nerveux
nerveux
physio
physio
Psychologie sociale
les partie du corps étape1
biologie
carte italie
Test
Gesprächsformen
La cuisine
irish question words
wordlist 3-4
visual brain
BWL 3.Klasse Personal und Recht
agents infectieux
Kapitel 1, del 2
Kapitel 2, del 1 (viktig)avsnitt 1-4
4. Obstetrik – Graviditet och förlossning
cocktail 1
2. Pediatrik – Tillstånd och beskrivningar
1. Pediatrik – Sjukdomar och tillstånd
historia de españa
Kapitel 1, del 1 (viktig)