JCL

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:23

LE23: 18/01/2021

Master in Informatics and Computing Engineering
Programming Fundamentals
Instance: 2020/2021


Lecture #23 :: 18/01/2021

Goals

By the end of this class, the student should be able to:

  • Describe reading data from external storage to be manipulated by the program
  • Describe how to make data outlive the program that creates it

Content

  • Files
    • About files [7.1]
    • Writing our first file [7.2]
    • Reading a file line-at-a-time [7.3]
    • Turning a file into a list of lines [7.4]
    • Reading the whole file at once [7.5]
    • An example [7.6]
    • Directories [7.7]
    • Fetching resources from the Web [7.8]

Bibliography

  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3, Release 3rd Edition, 2020 [PDF] (Chapter 7)
  • Brad Miller and David Ranum, Learning with Python: Interactive Edition. Based on material by Jeffrey Elkner, Allen B. Downey, and Chris Meyers [HTML] (Chapter 11)

Materials

Summary

  • Files. Writing to a file. Reading a file line-at-a-time. Directories. Fetching resources from the Web.

FPRO, 2020/21

« Previous | Index | Next »

teach/fpro/lectures/23.txt · Last modified: 03/01/2021 21:36 by Correia Lopes