Jump to content

fileCreate


orel56000

Recommended Posts

Posted
local newFile = fileCreate("test.txt")                -- attempt to create a new file 
if (newFile) then                                       -- check if the creation succeeded 
    fileWrite(newFile, "This is a test file!")        -- write a text line 
    fileClose(newFile)                                -- close the file once you're done with it 
end 

working on server side but doesen't working on client side and its sheared function command, why?

Posted
It should works in client side too, just delete the file that was already created and test it again.

its working on client side, but it cannot be founded on resouces

i also created a function who checking if the file is exist and its say yes, but i cannot see it..

Posted
Yeah, so here's the problem, I suggest you to keep it server side better

half of my code must to be in client side, how i can move only this function to server side and it will work?

Posted

why did they put it as a shared function anyway.. adding files to someone's computer in this way is way too easy. Since when is fileCreate a shared function? As far as I can remember there were endless discussions about this since people didn't want it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...