Character string extraction from a text file

Duplicate post