Find Jobs
Hire Freelancers

program tha reads a text file

$10-30 USD

Completed
Posted about 7 years ago

$10-30 USD

Paid on delivery
Write a Python program that reads a text file with your name and class schedule, such that the first line in the file is your name and each subsequent line has one of your classes. For example: Tom Cruise cosc 1323 - Computer Concepts I bask 1301 - Basket Weaving scub 4421 - Scuba Diving For Seniors More Details: Use Notepad or TextEdit to create the file. Your program does NOT have to create the file, only open it, read it and print each line to the screen. You will use a text editor, such as Notepad or TextEdit to create the file and type in your name and class schedule. Then close the file the editor and use your Python program to read the file and print the contents to the screen. Your program should open the file for read mode, use a for loop to read each line of the file and print the schedule to the screen. In our book, see page 196 for information on how to open a file, loop through the lines of the file and print the contents. Remember to use the entire path to the file when using the open() function. For full Credit : You must use exception handling to check for IOError exceptions. You must put comments above each function to describe what the function does.
Project ID: 13479643

About the project

3 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
$25 USD in 1 day
4.9 (102 reviews)
6.2
6.2

About the client

Flag of UNITED STATES
Austin, United States
5.0
10
Payment method verified
Member since Jan 22, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.