Read line from Serial

thenamefirst:
'readString' was not declared in this scope
How to solve it?

You probably messed something when selecting / coping, here it works out of the box.