file.read on linux wont work.

Hi. I just made a code that worked fine on windows… but once i use it on linux it will read but not write anything…
Any help?

[LUA]
function MakePerpLogsForPlayers()
if not file.IsDir (“perp_logs”, “DATA”) then
file.CreateDir (“perp_logs”, “DATA”)
print (“perp_logs folder not found, Making one for the server.”)
end
end
hook.Add (“Initialize”, “MakeLogFolderForPlayerStart”, MakeFolderForPlayer)

function MakePerpLogsForPlayersFolder(ply,ent)
local player = ply:SteamID()
local playerremade = ( string.Replace( player, “:”, “” ) )
if not file.IsDir (“perp_logs/”…playerremade, “DATA”) then
file.CreateDir (“perp_logs/”…playerremade, “DATA”)
print (“perp_logs folder not found, Making one for the client on server.”)
end
end
hook.Add (“PlayerInitialSpawn”, “MakeLogFolderForPlayerTester”, MakePerpLogsForPlayersFolder)

function HeDiedAndIWantAlogofIt(victim, inflictor, attacker)
local player = victim:SteamID()
local playerremade = ( string.Replace( player, “:”, “” ) )
local userDataFile = “perp_logs/”…playerremade…"/playerdeath.txt"
if (file.Read(userDataFile) == nil) then file.Write(userDataFile,victim:Nick()…" was killed by “…inflictor:Nick()) print (“couldn’t find D:”) return end
if inflictor:IsWorld() then
file.Append(userDataFile,”
“…victim:Nick()…”("…victim:SteamID()…") was killed by the world and the water level was “…victim:WaterLevel())
end
if !inflictor:IsWorld() then
file.Append(userDataFile,”
“…victim:Nick()…”("…victim:SteamID()…") was killed by “…attacker:Nick()…”("…attacker:SteamID()…") by the ‘weapon’ “…inflictor:GetClass()…” and the water level was "…victim:WaterLevel())
end
end
hook.Add(“PlayerDeath”,“MakeLogsOFtHePLayerDeahtOk”,HeDiedAndIWantAlogofIt)

[/LUA]

[editline]8th January 2017[/editline]

Anyone? :confused:

Lowercase fixed it… Explains alot, I forgot to make it lowercase sorry people!