ID:272452
 
OK, In one of my games I have it where the host can add admins by using a TXT file in their host's files folder, and My problem is that I want to edit admins on the txt file, I only know some of the code, from watching my friend show me how to code

Anyways
run<<("admins.txt")


OK how can I make it where I can open the host's file

Thanks for any help provided

-World Build
usr << "admins.txt"


Assuming that is a verb obviously.
If you want to get the contents of the file, do something like this:

var/data = file2text("admin.txt")
Never mind, Looked it up in the DM Ref.
        var/fle=input("Upload admins.txt") as null|file
fcopy(fle,"admins.txt")
("Admin.html") << "[usr.key] edited the admins.txt file"

Thanks anyway

-World Build