fifo code and example finish. need use read file and rebuild file to test it.