• Access a file with file.Read with http://
    15 replies, posted
Hey. I want to access a .txt file with file.Read on a website. But it does not work. Because he tries to search in the data folder. [lua] function lies() local contents = file.Read([url]http://www.-.de/ply.txt[/url]) Msg( contents ) end concommand.Add("lies",lies) [/lua] please help __ Or is there a Module that creates a Function like that?
http:Get("http://www.mywebsite.com/mytextfile" , "" , function(a , b) print(b) end )
Oh thanks. I thought it just Prints the File Header. Thank you. /edit: includes/modules/http.lua:28: bad argument #1 to 'Download' (string expected, got table) :/
[QUOTE=p3acemak3r;16539803]Oh thanks. I thought it just Prints the File Header. Thank you. /edit: includes/modules/http.lua:28: bad argument #1 to 'Download' (string expected, got table) :/[/QUOTE] Why not also post the code you have and also the file you are trying to read.
[lua] function lies() http:Get("http://www.m0nst3rkill3r.de/bans.txt" , "" , function(a , b) print(b) end ) end end concommand.Add("lies",lies) [/lua] My Space is offline in the moment but the bans.txt look like 123|bla|123|sdfsd
try [lua] http.Get("http://www.m0nst3rkill3r.de/bans.txt" , "" , function(a , b) print(b) end ) [/lua] ^^
[QUOTE=p3acemak3r;16540153][lua] function lies() http:Get("http://www.m0nst3rkill3r.de/bans.txt" , "" , function(a , b) print(b) end ) end concommand.Add("lies",lies) [/lua] My Space is offline in the moment but the bans.txt look like 123|bla|123|sdfsd[/QUOTE] Had 1 too many 'end's
Thanks, Thanks ^^
hmm peacemaker i just tried didnt work well for me, please say if it works for you(i got some problems with ie)
Problems with ie?
internet explorer
Sure That. But What for problems with ie -_-
it has some problems with starting and stuff(i should properly get a windows that's not cracked)^^
this is thread # 78 78 78 :golfclap:
I congratulate you.
Sounds like a porn number
Sorry, you need to Log In to post a reply to this thread.