file handling tutorials
REad |
Write |
Append |
Learn how to
read a file |
Learn how to
write a file |
Learn how to
append a file |
Word Length Calculator (100 points)
A rough guide as to how difficult a document is to read is to work out word lengths. Write a program that will calculate the average word length of a text stored in a file (i.e the sum of all the lengths of the word tokens in the text, divided by the number of word tokens).
GIS SUBMIT>>
A rough guide as to how difficult a document is to read is to work out word lengths. Write a program that will calculate the average word length of a text stored in a file (i.e the sum of all the lengths of the word tokens in the text, divided by the number of word tokens).
GIS SUBMIT>>
Image credits: file attachment by Vectors Point from the Noun Project, read by Creative Stall from the Noun Project & write by Gregor Cresnar from the Noun Project