Writing to files.
Jan 15, 2008 8:52:20 GMT -5
Post by Alyce on Jan 15, 2008 8:52:20 GMT -5
Not so much a bug as a caveat.
This demo uncovered a glitch:
runbasic.wikispaces.com/UploadAndMove
My first attempt at writing this code used a file opened for "output" to write filedata to a new file in a created folder. It worked okay for text files, but an attempt to write the data from a bmp file and from a wav file gave me an error:
unsupported character
The error went away when I attempted to write the data to a file opened for "binary." If files opened for output only work for text data, perhaps this should be documented.
This demo uncovered a glitch:
runbasic.wikispaces.com/UploadAndMove
My first attempt at writing this code used a file opened for "output" to write filedata to a new file in a created folder. It worked okay for text files, but an attempt to write the data from a bmp file and from a wav file gave me an error:
unsupported character
The error went away when I attempted to write the data to a file opened for "binary." If files opened for output only work for text data, perhaps this should be documented.