How can import inventory from a Text file or a CSV file?

I am working on a document and I want to import inventory from a text or CSV file. The software I am using does not have this facility. Is there anyone who has imported a text or CSV data into database? Anyone with an idea? I want to import my data without messing it up. Any suggestions? Kindly assist.
