I want to make my bank system for my server, but I got problem when making bank network.
When server tries write a file, it got an error like fil = nil. I can't solve the problem, so please help me!
There's the code:
local com = require("component")
local ev = require("event")
local fs = require("filesystem")
local net = com.modem
net.open(15)
print("Opened Net. Waiting for commands")
while true do
local _,_,from,port,_,message,nick,balance = ev.pull("modem_message")
if message == "getInfo" then
if fs.exists("bankAccounts/"..nick) then
local fil = io.open("bankAccounts/"..