How to print the following code to a .txt file
y = '10.1.1.' # /24 network,
for x in range(255):
x += 1
print y + str(x) # not happy that it's in string, but how to print it into a.txt
There's copy paste, but would rather try something more interesting.