Moved the file allocation to raw data function
Pointer asterisk swap