I have a .txt file (the content are from one data type say it is numerical) and I want to open this file using C then read its content and then put its content in MySQL database is this possible and how?
I have a .txt file (the content are from one data type say it is numerical) and I want to open this file using C then read its content and then put its content in MySQL database is this possible and how?
Yes. You would use say, fopen, fscanf (or fread, if it was written with fwrite rather than text), and fclose to read the content of the text file, then the MySQL C API to store the value to the database.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
C File I/O Tutorial - Cprogramming.com
For file I/O
Fact - Beethoven wrote his first symphony in C
"...I'm beginner in programming..."
You need a thorough understanding of the C Programming language BEFORE you attempt to add any API, or Application Programming Interface to a project, especially the MYSQL API..
Take a course in C, with a qualified instructor, or study a good book on C. There is a link here to some C book recommendations, but the list is a little out of date, and needs to be updated.