1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374(*
include Out_channel
*)typet=out_channeltypeopen_flag=Pervasives.open_flag=Open_rdonly|Open_wronly|Open_append|Open_creat|Open_trunc|Open_excl|Open_binary|Open_text|Open_nonblockletstdout=stdoutletstderr=stderrletopen_bin=open_out_binletopen_text=open_outletopen_gen=open_out_genletread_and_closechannelf=Stdcompat__fun.protect~finally:(fun()->close_out_noerrchannel)(fun()->fchannel)letwith_open_binfilenamef=read_and_close(open_binfilename)fletwith_open_textfilenamef=read_and_close(open_textfilename)fletwith_open_genflagspermfilenamef=read_and_close(open_genflagspermfilename)fletseek=LargeFile.seek_outletpos=LargeFile.pos_outletlength=LargeFile.out_channel_lengthletclose=close_outletclose_noerr=close_out_noerrletflush=flushletflush_all=flush_allletoutput_char=output_charletoutput_byte=output_byteletoutput_string=output_stringletoutput_bytes=Stdcompat__pervasives.output_bytesletoutput=outputletoutput_substring=Stdcompat__pervasives.output_substringletset_binary_mode=set_binary_mode_outletset_buffered__=failwith"Stdcompat.Out_channel.set_buffered is not implemented yet. Please fill an issue: https://github.com/thierry-martinez/stdcompat/issues ."letis_buffered_=true