Author: Daniel Norfolk

44. Reading Delimited Files

Sometimes, you need to read in files from other programs containing information such as student records or address details. We use files known as comma separated values files They are simply text files with a different extension (.csv) Each line will have multiple items on it, each usually separated by a comma. It might look […]

43. Writing Multiple Lines

When writing to files, you can either overwrite the information in the file (w), or add to it as you go along (a). This is set as shown below. Choose one or the other, not both There is a function called writeline() that you might assume is the opposite of readline(). Using this is slightly […]