Python Forum

Full Version: from .txt to database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a .txt file (the content are from one data type say it is numerical) and I want to open this file using Python then read its content and then put its content in MySQL database is this possible and how?
I think you can read the .txt file first, parse all content to data in memory, and finally write it to MySQL database.