integration of txt file reading to generate item