Moved text file part extraction before the preprocessor
wip