Lecture 5 – January 23, 2007

 

Started with a quiz which we then discussed

 

Quiz :   Quiz1_KEY

 

TA Schedule for the rest of the semester

 

Note:  All of the .java files links point to .txt file version of the code so you can get to them.

            To run them, you’ll have to rename them.

 

Reviewed ReadFromFile.java

                 ReadFromFileB.java

 

Went over use of regular expressions & special delimiters with Scanner & StringTokenizer

              PlayWithText.java

              PlayWithText2.java

 

Showed:  MyFileWriter.java

                        NewFile.txt   - file created by MyFileWriter.java

                        OldFile.txt  - file created by MyFileWriter.java

            SimpleFileReader.java  - is in text  & on CD

            SimpleFileWriter.java   - is in text & on CD  - I modified this one as MyFileWriter.java

 

Slides:   More_IO.ppt

 

Talked about end of file marker from IO lab (different in Windows and Unix)

             Test.java        

             

Talked about how to change drives, and how to find personal directory on M drive.