New API: fill-pattern for creating files with predefined patterns.