The file can be allocated using code example
Example: disadvantages of using contiguos allocation method file system
Contiguous allocation method suffers internal as well as external fragmentation.
In terms of memory utilization, this method is inefficient.
It is difficult to increase the file size because it depends on the availability of contiguous memory.