import npufs |
PATH = "/media/mmcsd-0-0/" |
#write 'TestDataTestData' as binary data in the testdata.bin file |
with npufs.open(PATH + 'testdata.bin', 'wb') as f: |
f.write(b'TestDataTestData') |
#read data as binary data from the testdata.bin file |
#read entire file to the end |
with npufs.open(PATH + 'testdata.bin', 'rb') as f: |
print(f.read()) |