The code from my answer to thread: http://www.daniweb.com/forums/thread292949.html
Any field names with any same separator separating the values. This is straight text file reading routine, see the original thread for csv module based code.
sample.dat:
id; name; email; homeaddress
123; gishi; gishi@mymail.com; 456 happy st.
345; tony; tony.veijalainen@somewhere.com; Espoo Finland