```
file = open('C:/Desktop/text.txt', encoding='utf8')
file = file.read()
result = file.findall('name') 
print (file[result+1:result+5])

```

Whenever I run this this code I get the error
**AttributeError: 'str' object has no attribute 'findall'**