letmemsic=trywhiles<>input_lineicdo()done;truewithEnd_of_file->false;;letuniqicoc=trywhiletruedolets=input_lineicinletcurrent_pos=pos_inicinifmemsicthen()elseoutput_stringoc(s^"\n");seek_iniccurrent_pos;donewithEnd_of_file->flushoc;;letmainin_fileout_file=leti=open_inin_fileando=open_outout_fileinuniqio;close_ini;close_outo;;(* main "in.txt" "out.txt";; *)
susu
#6308()
[
OCaml
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]