Publicité

C programming session 08

Self employed consultant à Google
30 Aug 2011
Publicité

Contenu connexe

Publicité
Publicité

C programming session 08

Notes de l'éditeur

  1. Begin the session by explaining the objectives of the session.
  2. Discuss about streams with the students.
  3. Discusses various modes for opening a file. Compare the modes and discuss the situations where a specific mode should be chosen.
  4. Discuss the use of FILE type pointer to check whether a file has opened successfully. Also, discuss the situations where a FILE type pointer cannot open a file for read or write mode.
  5. Discuss the student about the ways to determine the end of file when using the fgetc() function.
  6. Use this slide to test the student’s understanding on reading and writing contents in a file.
  7. Use this slide to test the student’s understanding on reading and writing contents in a file.
  8. Discuss the student about the ways to determine the end of file when using the fgets() function.
  9. Use this slide to test the student’s understanding on reading and writing contents in a file.
  10. Discuss the need for using the formatted input-output in a file.
  11. Use this slide to test the student’s understanding on formatted input-output in a file.
  12. Discuss sequential access and random access with their advantages and limitations.
  13. Use this slide to test the student’s understanding on random access in a file.
  14. Use this slide to test the student’s understanding on reading/writing contents in a file.
  15. Use this slide to test the student’s understanding on reading/writing contents in a file.
  16. Use this and the next 2 slides for summarizing the session.
Publicité