diff --git a/1.txt b/1.txt new file mode 100644 index 0000000..e69de29 diff --git a/Book_Bot/__pycache__/book.cpython-311.pyc b/Book_Bot/__pycache__/book.cpython-311.pyc new file mode 100644 index 0000000..46b01b9 Binary files /dev/null and b/Book_Bot/__pycache__/book.cpython-311.pyc differ diff --git a/Book_Bot/__pycache__/main.cpython-311.pyc b/Book_Bot/__pycache__/main.cpython-311.pyc new file mode 100644 index 0000000..4f259ce Binary files /dev/null and b/Book_Bot/__pycache__/main.cpython-311.pyc differ diff --git a/__pycache__/insta_bot.cpython-311.pyc b/__pycache__/insta_bot.cpython-311.pyc new file mode 100644 index 0000000..6ad1f3e Binary files /dev/null and b/__pycache__/insta_bot.cpython-311.pyc differ diff --git a/__pycache__/translator.cpython-311.pyc b/__pycache__/translator.cpython-311.pyc new file mode 100644 index 0000000..d045dfb Binary files /dev/null and b/__pycache__/translator.cpython-311.pyc differ diff --git a/spelling_corrector.py b/spelling_corrector.py index b0d6e91..1229dfa 100644 --- a/spelling_corrector.py +++ b/spelling_corrector.py @@ -1,7 +1,16 @@ from textblob import TextBlob -file1 = open("1.txt", "r+") -a = file.read() +file1 = open("1.txt", "w+") + + +# Write some text to the file +#file1.write("original text") + +# Reset the file pointer to the beginning of the file +#file1.seek(0) + + +a = file1.read() print("original text : " + str(a)) b = TextBlob(a)