In python, if a file opened using the w access flag will the data written to file be:
- ASCII-encoded
- encoded using the UTF-8 scheme
- encoded using some other scheme?
If it is platform or system specific, how do we find out which encoding scheme is used, or is there a different library I should use for file I/O for which we explicitly specify the encoding scheme?
file = open("data.txt", "w")