1 / 37

13-3 Converting File Type

13-3 Converting File Type. A rather common but somewhat trivial problem is to convert a text file to a binary file and vice versa. C has no standard functions for these tasks. We must write a program to make the conversion. We describe the file conversion logic in this section.

Télécharger la présentation

13-3 Converting File Type

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 13-3 Converting File Type A rather common but somewhat trivial problem is to convert a text file to a binary file and vice versa. C has no standard functions for these tasks. We must write a program to make the conversion. We describe the file conversion logic in this section. Topics discussed in this section: Creating a Binary File from a Text File Creating a Text File from a Binary File Computer Science: A Structured Programming Approach Using C

  2. FIGURE 13-14 Create Binary File Structure Chart Computer Science: A Structured Programming Approach Using C

  3. PROGRAM 13-5 Text to Binary Student File Computer Science: A Structured Programming Approach Using C

  4. PROGRAM 13-5 Text to Binary Student File Computer Science: A Structured Programming Approach Using C

  5. PROGRAM 13-5 Text to Binary Student File Computer Science: A Structured Programming Approach Using C

  6. PROGRAM 13-5 Text to Binary Student File Computer Science: A Structured Programming Approach Using C

  7. PROGRAM 13-5 Text to Binary Student File Computer Science: A Structured Programming Approach Using C

  8. PROGRAM 13-5 Text to Binary Student File Computer Science: A Structured Programming Approach Using C

  9. FIGURE 13-15 Design for Print Student Data Computer Science: A Structured Programming Approach Using C

  10. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  11. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  12. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  13. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  14. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  15. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  16. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  17. PROGRAM 13-6 Print Student Data Computer Science: A Structured Programming Approach Using C

  18. 13-4 File Program Examples This section contains two common file applications. The first uses the file positioning functions to randomly process the data in a file. The second merges two files. Topics discussed in this section: Random File ProcessingMerge Files Computer Science: A Structured Programming Approach Using C

  19. PROGRAM 13-7 Random File Application Computer Science: A Structured Programming Approach Using C

  20. PROGRAM 13-7 Random File Application Computer Science: A Structured Programming Approach Using C

  21. PROGRAM 13-8 Random File: Build File Computer Science: A Structured Programming Approach Using C

  22. PROGRAM 13-8 Random File: Build File Computer Science: A Structured Programming Approach Using C

  23. PROGRAM 13-9 Random File: Sequential Print Computer Science: A Structured Programming Approach Using C

  24. PROGRAM 13-9 Random File: Sequential Print Computer Science: A Structured Programming Approach Using C

  25. PROGRAM 13-10 Random File: Random Print Computer Science: A Structured Programming Approach Using C

  26. PROGRAM 13-10 Random File: Random Print Computer Science: A Structured Programming Approach Using C

  27. FIGURE 13-16 File Merge Concept Computer Science: A Structured Programming Approach Using C

  28. ALGORITHM 13-1 Pseudocode for Merging Two Files Computer Science: A Structured Programming Approach Using C

  29. PROGRAM 13-11 Merge Two Files Computer Science: A Structured Programming Approach Using C

  30. PROGRAM 13-11 Merge Two Files Computer Science: A Structured Programming Approach Using C

  31. PROGRAM 13-11 Merge Two Files Computer Science: A Structured Programming Approach Using C

  32. PROGRAM 13-11 Merge Two Files Computer Science: A Structured Programming Approach Using C

  33. 13-5 Software Engineering Any file environment requires some means of keeping the file current. The function that keeps files current is known as updating. To complete our discussion of files, we discuss some of the software engineering design considerations for file updating. Topics discussed in this section: Update Files Sequential File Update The Update Program Design Update Errors Update Structure Chart and Logic Computer Science: A Structured Programming Approach Using C

  34. FIGURE 13-17 Sequential File Update Environment Computer Science: A Structured Programming Approach Using C

  35. FIGURE 13-18 File Updating Example Computer Science: A Structured Programming Approach Using C

  36. FIGURE 13-19 Update Structure Chart Computer Science: A Structured Programming Approach Using C

  37. ALGORITHM 13-2 Pseudocode for File Update Computer Science: A Structured Programming Approach Using C

More Related