[Question]Where is the bug?
Posted: Wed Apr 24, 2013 9:30 am
Code: Select all
anadosyam="oku.gr";
ac=io.open(anadosyam, "r+");
while true do
actir=ac.read(ac, "*a");
if not line then
break;
end
end
acilacakdosya=actir;
acilacak=io.open(acilacakdosya,"r");
while true do
kodlar=acilacak.read(acilacak, "*a");
if not line then
break;
end
end
Code: Select all
Program starting as '"lua" -e "xpcall(function() io.stdout:setvbuf('no'); require('mobdebug').loop('nikneym-MS-7507',8172) end,function(err) print(debug.traceback(err)) end)"'.
Program 'lua' started in '/home/nikneym/Desktop/Html5-OyunMotoru/html5' (pid: 3271).
Debugging session started in '/home/nikneym/Desktop/Html5-OyunMotoru/html5/'.
Debugging session completed (traced 0 instructions).
Program completed in 0,39 seconds (pid: 3271).
main.lua:29: attempt to index global 'acilacak' (a nil value)
stack traceback:
main.lua:29: in main chunk