Attempt to index a nil value (global 'csvfile')


#1

Hello,

I am trying to create the module as described in the course.
However I am facing the below error.

lua53: C:\lua\csvtools.lua:29: attempt to index a nil value (global ‘csvfile’)
stack traceback:
C:\lua\csvtools.lua:29: in function ‘csvtools.getLastLine’
primer_csvmodule1.lua:4: in main chunk
[C]: in ?

Could you please help in solving this error?

Regards,
Reddy