-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathread.py
More file actions
27 lines (25 loc) · 1.03 KB
/
read.py
File metadata and controls
27 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from tools import slice
Adventures = ''
Memoirs = ''
Alice = ''
LookingGlass = ''
InvisibleMan = ''
Dracula = ''
Frankenstein = ''
TimeMachine = ''
with open("lib/AdventuresOfSherlockHolmes.txt", 'r') as Adventures_file:
Adventures = slice(Adventures_file.read())
with open('lib/MemoirsOfSherlockHolmes.txt', 'r') as Memoirs_file:
Memoirs = slice(Memoirs_file.read())
with open('lib/AliceInWonderland.txt', 'r', encoding='utf8', errors='ignore') as Alice_file:
Alice = slice(Alice_file.read())
with open('lib/ThroughTheLookingGlass.txt', 'r') as LookingGlass_file:
LookingGlass = slice(LookingGlass_file.read())
with open('lib/TheInvisibleMan.txt', 'r') as InvisibleMan_File:
InvisibleMan = slice(InvisibleMan_File.read())
with open('lib/Dracula.txt', 'r') as Dracula_file:
Dracula = slice(Dracula_file.read())
with open('lib/Frankenstein.txt', 'r') as Frankenstein_file:
Frankenstein = slice(Frankenstein_file.read())
with open('lib/TimeMachine.txt', 'r') as TimeMachine_file:
TimeMachine = slice(TimeMachine_file.read())