0

If I'm use this version of code: open(test.bin,b) - why test say me "error"? Atribute "r" was set by default or not?

6th Dec 2016, 7:10 AM
Сергей Осадчий
Сергей Осадчий - avatar
3 odpowiedzi
+ 2
hi, you have to set your b in ' ' like 'b'
6th Dec 2016, 11:15 AM
THDevelop
THDevelop - avatar
+ 2
if you want read the bin file ues 'rb' for write 'wb' i donr know if the read as default set. its better to wirte this. i think with only b the function dont know what read or write.
6th Dec 2016, 11:17 AM
THDevelop
THDevelop - avatar
0
you forgot the " ' " like it should be written as 'b'
13th Dec 2016, 2:17 AM
Giam Paolo
Giam Paolo - avatar