@@ -9,6 +9,7 @@ \chapter{Files and Streams: Input/Output Techniques}
99\CObegin
1010
1111\secCOBH {Objectives}
12+ \label {objectives }
1213
1314\noindent After studying this chapter, you will
1415
@@ -23,6 +24,7 @@ \chapter{Files and Streams: Input/Output Techniques}
2324\end {COBL }
2425
2526\secCOLH {Outline}
27+ \label {outline }
2628
2729\begin {COL }
2830\item {Introduction}
@@ -368,6 +370,7 @@ \subsection{Input and Output Streams}
368370% \section{CASE STUDY}\begin{casestudy}{Reading and Writing Text Files}
369371\label {casestud-ybegin-readingand-writing-text-files }
370372% %%\secCSFHleft{CASE STUDY: Reading and Writing Text Files}
373+ \label {casestudy-readingand-writing-text-files }
371374\section {CASE STUDY: Reading and Writing Text Files }
372375\label {casestudy-readingand-writing-text-files }
373376\noindent Let's write a GUI application that will be able to
@@ -684,6 +687,7 @@ \subsection{Code Reuse: Designing Text File Output}
684687to help you to design I/O methods for other tasks.
685688
686689\secEXRHone {Self-Study Exercise}
690+ \label {self-study-exercise }
687691\begin {SSTUDY }
688692\item Is it possible to perform output to a text file using a
689693{\tt PrintWriter} and a {\tt FileWriter} stream in combination? If so,
@@ -909,6 +913,7 @@ \subsection{Reading from a Text File}
909913{\tt null}, that means the file is empty and the loop body will be skipped.}
910914
911915\secEXRHone {Self-Study Exercise}
916+ \label {self-study-exercise }
912917\begin {SSTUDY }
913918
914919\item What's wrong with the following loop for reading
@@ -1004,6 +1009,7 @@ \subsection{Code Reuse: Designing Text File Input}
10041009which particular read or write method you use.
10051010
10061011\secEXRHone {Self-Study Exercise}
1012+ \label {self-study-exercise }
10071013\begin {SSTUDY }
10081014
10091015\item What's wrong with the following loop for reading
@@ -1307,6 +1313,7 @@ \subsection{Validating File Names}
13071313{\tt IOException}s.
13081314
13091315\secEXRHone {Self-Study Exercise}
1316+ \label {self-study-exercise }
13101317\begin {SSTUDY }
13111318
13121319\item The other methods of the {\tt File} class are
@@ -1693,6 +1700,7 @@ \subsection{Reading Binary Data}
16931700
16941701\pagebreak
16951702\secEXRHone {Self-Study Exercise}
1703+ \label {self-study-exercise }
16961704\begin {SSTUDY }
16971705
16981706\item Identify the error in the following method, which is supposed to read
@@ -2195,6 +2203,7 @@ \subsection{The {\tt ObjectIO} Class}
21952203
21962204\pagebreak
21972205\secEXRHone {Self-Study Exercise}
2206+ \label {self-study-exercise }
21982207\begin {SSTUDY }
21992208
22002209\item Given the following definition, would a binary file consisting of
@@ -2491,8 +2500,10 @@ \section*{Special Topic: Databases and Personal Privacy}
24912500
24922501
24932502\secSMH {Chapter Summary}
2503+ \label {chapter-summary }
24942504
24952505\secKTH {Technical Terms}
2506+ \label {technical-terms }
24962507
24972508% \parindent=0pt
24982509\begin {KT }
@@ -2549,6 +2560,7 @@ \section*{Special Topic: Databases and Personal Privacy}
25492560% %%REW\clearpage
25502561
25512562\secSMHtwo {Summary of Important Points}
2563+ \label {summaryof-important-points }
25522564\begin {SMBLlarge }
25532565\item A {\it file} is a collection of data stored on a disk.
25542566A {\it stream} is an object that delivers data to and from other
@@ -2698,7 +2710,9 @@ \section*{Special Topic: Databases and Personal Privacy}
26982710
26992711% \section*{}{Exercises}
27002712% %\secEXRHtwoleft{Exercises}
2713+ \label {exercises }
27012714\secEXRHtwo {Exercises}
2715+ \label {exercises }
27022716\marginnote {\raggedright\vspace {9pt}{\bf Note:} For programming exercises, {\bf first} draw
27032717a UML class diagram describing all classes and
27042718their inheritance relationships and/or associations.}
0 commit comments