Jump to content
UBot Underground

[SOLVED] list from file (file store at web address)


Recommended Posts

Ok, this is probably easy or has an obvious answer.

 

But I have a text file which I can add to a list quite easily, but I want to be able to store the text files on in a subdirectory on my website. When I try to use $list from file using my web address all I get in the list is <html>, <body>, </body>, </html>

 

How to I get ubot to actually read whats in the text file, not just take html tags?

 

Thanks

Link to post
Share on other sites

if your file does not depend on HMTL

 

try saving the file as .txt file

with no HTML coding then upload it to

your server.

 

then use that url as the location of the file.

 

James

  • Like 1
Link to post
Share on other sites

if you want to do that from a web url you need to do it like this..

 

add list to list

- list from text

--read file (url) for the content

--delimiter $new line

 

done..

 

Thanks, that worked great :-)

 

It was the read file thing I didn't know about

 

add list to list(%advert_title, $list from text($read file("http:// <removed the url> /ubot/subject_titles.txt"), $new line), "Delete", "Global")

Link to post
Share on other sites

if your file does not depend on HMTL

 

try saving the file as .txt file

with no HTML coding then upload it to

your server.

 

then use that url as the location of the file.

 

James

 

The file was already a text file on my server, just needed the read file thing as LoWrIdErTJ - BotGuru mentioned :-)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...