reading sd file line by line, intersected with "code"