Problem with binary files
- Posted by rforno at tutopia.com
Apr 28, 2001
I am working in a program that generates MIDI files. After getting strange
results, I traced the problem to the puts() command. It keeps generating #0D
characters before each #0A. The program was run under DOS under Windows 98.
The reduced test program is very simple:
procedure test()
integer f
sequence s
f = open("zz", "w")
s = {}
for i = 0 to 2 do
for j = 0 to 255 do
s &= j
end for
end for
puts(f, s)
close(f)
end procedure
test()
I am attaching the output of this program.
Does anybody know how to get rid of the extraneous #0D characters?
|
Not Categorized, Please Help
|
|