Write a check file.