Institute of Computer Science
  1. Courses
  2. 2023/24 fall
  3. Concurrent Programming Languages (LTAT.06.022)
ET
Log in

Concurrent Programming Languages 2023/24 fall

  • Pealeht
  • Loengud
  • Labs
  • Viited
  • Homework

Use the file reading example from the slides. Modify this program in the following ways:

1) Make it read directories recursively and output all files found in them (chose a directory for testing which does not have too much in it).

2) If a file name ends with .gz, uncompress the file as part of the processing. .gz only compresses a file, it does not contains more than one file. If you want to try this with .zip files, it becomes tricky, since there can be several files in a .zip file.

3) Make the program output a string with the contents of all files concatenated. For this, try to avoid concatenating the files first (as done now) and then append them. Try to concatenate the chunks delivered by FileIO directly.

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment