file object method built in to file object output write(line data being written number of characters actually written len(line writeable file object has method write(which takes text string (typically but not necessarily lineand writes it to the file this has return valuewhich is the number of characters it managed to write note that if there are "issues(running out of spacemalfunctionsnetwork interruptionsthe system may not be able to write all the characters typically it doesthoughand the return code should match the length of the line