Tags:
create new tag
view all tags

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)
Topic revision: r1 - 2023-06-19 - cathybareiss
 
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