I have a login system with an SQLite database and want to import a CSV file content with user numbers or password that are much, pls how do i archive this.
Thanks in advance
Kaase
Thanks in advance
Kaase
dofile "AutoPlay\\Scripts\\DelimitedStringFunctions.lua"; Debug.ShowWindow(); local nCount = 1; for sLine in io.lines(".\\AutoPlay\\Docs\\sample.csv") do local tFields = DelimitedStringToTable(sLine, ","); if (tFields ~= nil) then -- here you would execute the INSERT in your database instead -- but this code will just display the data as it is processed Debug.Print("Line " .. nCount .. ":\r\n"); for i = 1, #tFields do Debug.Print("Field " .. i .. ": " .. tFields[i] .. "\r\n"); end Debug.Print("--------------------\r\n"); nCount = nCount + 1; end end
Comment