5903 Intro Scientific Prog:
Timing IO: Specification

 
  1. Compare the following times (graphs, tables, words, etc.)
    1. Reading n doubles in batches of m using fscanf.
    2. Reading n floats in batches of m using fscanf.
    3. Reading n ints in batches of m using fscanf.
    4. Reading n chars in batches of m using fscanf.
    5. Reading n chars in batches of m using fgetc.
    6. Writing n doubles in batches of m using fprintf.
    7. Writing n floats in batches of m using fprintf.
    8. Writing n ints in batches of m using fprintf.
    9. Writing n chars in batches of m using fprintf.
    10. Writing n chars in batches of m using fputc.
  2. By opening and closing a file repeatedly try to work out how long it takes for these bookkeeping operations.