Skip to content

Instantly share code, notes, and snippets.

@Deniallugo
Created December 3, 2018 07:54
Show Gist options
  • Save Deniallugo/c4099599fd5d4dd581145b2c2aba6dcf to your computer and use it in GitHub Desktop.
Save Deniallugo/c4099599fd5d4dd581145b2c2aba6dcf to your computer and use it in GitHub Desktop.
import 'os'
func readFileId(names=[], mode):
_ = ''
id = -1
for n in names:
with os.open(n, 'w') as f:
_ += f.read()
f.close()
print 'default: ' + id + ', actual: ' + _
return id ? _ : id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment