An open API service indexing awesome lists of open source software.

https://github.com/allenkeys/read-file

A python based program that read the content of a file saved in .txt and also count the occurrence of each specific word while excluding special characters without the use of python packages.
https://github.com/allenkeys/read-file

Last synced: 2 months ago
JSON representation

A python based program that read the content of a file saved in .txt and also count the occurrence of each specific word while excluding special characters without the use of python packages.

Awesome Lists containing this project

README

        

# READ FILE CONTENT PROGRAM
---
This program reads the content of a file saved in *.txt* and also count the occurence of every specific word in the text.

1. **read_file_content(filename)** function

Takes an argument **filename** which is accessed, read and return as **string**.
2. **count_words()**

This function access the return value of the *function* above and create a dictionary of specific words as keys and the number of occuren as values.