Try something new. NodeBox 2 Beta - Now Available for Download

Reference | open()


Syntax
open(path).read()

DescriptionThe open() command opens a file specified by the path parameter. The open() command can be used in two ways: open(path).read(), which returns the file's text content as a string, or, alternatively, open(path).readlines(), which returns a list of text lines.
Returnsthe file's text content, as a string
Tutorial Strings


Example
# Prints the contents of sample.txt as a whole
txt = open("sample.txt").read()
print txt
 
# Prints the contents line per line
txt = open("sample.txt").readlines()
for line in txt:
    print line