We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
With xpresso you can open files for read/write/append using pythonic one-liners.
Python:
with open("name.txt","r","utf-8") as f: #do stuff
xpresso:
try (HappyFile f = x.open("name.txt","r","utf-8")) { //do stuff }
Works for write/read/append in both text and binary mode.
Like in Python, a file opened for reading in text mode is an Iterable of strings:
for line in f: print line
for (String line : f) x.print(line);