Presentation is loading. Please wait.

Presentation is loading. Please wait.

Files and Parsing CSC 265 (Blum).

Similar presentations


Presentation on theme: "Files and Parsing CSC 265 (Blum)."— Presentation transcript:

1 Files and Parsing CSC 265 (Blum)

2 A Notepad (not WordPad and not Word) File
CSC 265 (Blum)

3 File Read by Program CSC 265 (Blum)

4 Necessary Imports CSC 265 (Blum)

5 Code for Reading Entire Contents of File at Once
CSC 265 (Blum)

6 File to be Read Line By Line
CSC 265 (Blum)

7 CSC 265 (Blum)

8 CSC 265 (Blum)

9 CSC 265 (Blum)

10 Instantiate at the class level
CSC 265 (Blum)

11 Code for Reading a Line CSC 265 (Blum)

12 Bin folder before writing
CSC 265 (Blum)

13 Program writing to a file
CSC 265 (Blum)

14 Bin folder after writing
CSC 265 (Blum)

15 File in Notepad CSC 265 (Blum)

16 Code for Writing to a File
CSC 265 (Blum)

17 Getting the Character Map
CSC 265 (Blum)

18 The Character Map Go to the Symbol fonts. Click on the arrow.
Read its character code at the bottom. CSC 265 (Blum)

19 Get the calculator CSC 265 (Blum)

20 Put calculator into Scientific View
CSC 265 (Blum)

21 Put Calculator in Hex mode and enter character code
CSC 265 (Blum)

22 Convert from Hex to Dec CSC 265 (Blum)

23 Choose the font for the button to be Symbol
CSC 265 (Blum)

24 Set Text Property of Button to appropriate character
CSC 265 (Blum)

25 Proper button with arrow as promised previously
CSC 265 (Blum)

26 Parsing: breaking a string into tokens
CSC 265 (Blum)

27 Parsing: breaking a string into tokens (result)
CSC 265 (Blum)

28 Parsing code CSC 265 (Blum)

29 Parsing code (Cont) CSC 265 (Blum)

30 Trimming CSC 265 (Blum)

31 Trimming Code CSC 265 (Blum)

32 Capitalizing CSC 265 (Blum)

33 Capitalizing Code CSC 265 (Blum)

34 ToUpper does not alter original
CSC 265 (Blum)

35 ToUpper does not alter original
CSC 265 (Blum)

36 In Internet Explorer, go to http://home. cfl. rr
CSC 265 (Blum)

37 Highlight and copy the table of state information
CSC 265 (Blum)

38 Open up Excel and copy the table there
CSC 265 (Blum)

39 Delete the first column and first two rows
Don’t worry about the flag images. CSC 265 (Blum)

40 Go to File/Save As, choose a location to save the file, choose Save as type to be CSV, then name the file State.csv CSC 265 (Blum)

41 Click OK here. CSC 265 (Blum)

42 Click Yes here. CSC 265 (Blum)

43 Close the file and open it in Notepad
CSC 265 (Blum)


Download ppt "Files and Parsing CSC 265 (Blum)."

Similar presentations


Ads by Google