Lecture overview -- Keyboard shortcut: 'u'  Source programs in previous lecture -- Keyboard shortcut: 'p'  Source programs in next lecture -- Keyboard shortcut: 'n'  Course home

Source Programs
Input and Output Classes

The Note Context in the rightmost column is only shown in case an annotated program exists. - You can navigate to the annotated program via the annotated slide view (= 'the note context').

A program that writes bytes corresponding to 'O' 'O' 'P' to a file stream.write-prog.csSlide contextText book context-
The contents of myFile.bin - interpreted as simple ASCII text - after executing the write program.myFile.binSlide contextText book context-
A program that reads the written file.read-prog.csSlide contextText book context-
The control structure 'using' defined by 'try-finally'.using-equivalenceSlide contextText book context-
The simple write-program programmed with 'using'.write-prog.csSlide contextText book context-
The simple read-program programmed with 'using'.read-prog.csSlide contextText book context-
A FileCopy method in a source file copy-file.cs - uses two FileStreams.copy-file-1.csSlide contextText book context-
Sample encodings, conversions, and decodings of a string of Danish characters.prog.csSlide contextText book contextNote context
Output from the Encoding program.outputSlide contextText book context-
Writing a text string using three different encodings with StreamWriters.write-prog.csSlide contextText book contextNote context
Writing values of simple types and objects of our own classes.write-prog.csSlide contextText book contextNote context
Reading back the text strings encoded in three different ways, with StreamReader.read-prog.csSlide contextText book context-
A program that reads line of text and parses them to values of simple types.read-prog.csSlide contextText book context-
Use of a BinaryWriter to write some values of simple types.write-prog.csSlide contextText book context-
Use of a BinaryReader to write the values written by means of the BinaryWriter.read-prog.csSlide contextText book context-
A StringWriter program similar to the StreamReader program shown earlier.write-prog.csSlide contextText book context-
Output of the StringWriter program.write-outputSlide contextText book context-
A StringReader program.read-prog.csSlide contextText book context-
Output of the StringReader program.read-outputSlide contextText book context-
A program that redirects standard output and standard error to a file.app.csSlide contextText book context-
File 1 after the execution of the Console demo program.File1Slide contextText book context-
File 2 after the execution of the Console demo program.File2Slide contextText book context-
A demonstration of the FileInfo class.file-info.csSlide contextText book contextNote context
A demonstration of the File class.file.csSlide contextText book context-
A demonstration of the DirectoryInfo class.directory-info.csSlide contextText book context-
A demonstration of the Directory class - similar to the DirectoryInfo demo program.directory.csSlide contextText book context-
The Person class - Serializable.person.csSlide contextText book context-
The Date class - Serializable.date.csSlide contextText book context-
The Person client class - applies serialization and deserialization.client.csSlide contextText book context-
The Person class - Serialization control with attributes.person.csSlide contextText book context-
The Date class - Serialization control with attributes .date.csSlide contextText book context-
The Person client class - applies serialization.client.csSlide contextText book context-
An obsolete class C, and a class D with an obsolete method M.prog.csSlide contextText book context-
A reproduction of class ObsoleteAttribute.obsolete.csSlide contextText book context-
Sample usage of the reproduced class - causes a compilation error.usage-obsolete.csSlide contextText book context-
A program that compresses a file.compress.csSlide contextText book context-
The corresponding program that decompresses the file.decompress.csSlide contextText book context-

Generated: Monday February 7, 2011, 12:19:28