Difference: CSC121F2023Lab06Hint3 ( vs. 1)

Revision 12023-06-19 - cathybareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC121F2023Lab06"

Finding a number on a given line

  • Open the file (see class notes for examples and how to handle exceptions)
  • Use a count controlled loop to count
  • Return the last number read (after closing the file)
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback