Patent ID: 7610434

Claim:
A file recording apparatus for recording data onto a recording medium which is written in clusters and erased in blocks each composed of a predetermined number of contiguous clusters, the file recording apparatus comprising: a receiving unit configured to receive a request for writing data of a specific one of a plurality of files onto the recording medium; a plurality of file buffers each for a different one of the files, and each of said plurality of file buffers being larger than one block size; a data accumulating unit configured to accumulate the data requested to be written, in one of the file buffers corresponding to the specific file; a judging unit configured to judge whether data having been accumulated by the data accumulating unit is no smaller than a block size; and a writing unit configured, if the judging unit judges affirmatively, to extract a block of data from the accumulated data and to write the extracted data into a free block of the recording medium, wherein the judging unit judges that the accumulated data is no smaller than the block size, when a total of quotients each calculated by dividing a size of data accumulated in respective one of the file buffers by a cluster size is no smaller than the predetermined number, and the writing unit extracts data from the respective file buffers cluster by cluster until the predetermined number of clusters is reached, and writes the extracted data to the free block of the recording medium.