Adds some documentation to file2list

This commit is contained in:
Jordan Brown
2018-01-09 12:25:39 -05:00
committed by GitHub
parent 035bc592c4
commit 1922c8b24e
+2 -1
View File
@@ -65,6 +65,7 @@
return .
//Splits the text of a file at seperator and returns them in a list.
//returns an empty list if the file doesn't exist
/world/proc/file2list(filename, seperator="\n", trim = TRUE)
if (trim)
return splittext(trim(file2text(filename)),seperator)
@@ -589,4 +590,4 @@
for(var/i = 1 to length(str)/2)
c= hex2num(copytext(str,i*2-1,i*2+1))
r+= ascii2text(c)
return r
return r