is there a method to read file in CodeWarrior10.4?
do you mean to program such a file with the debugger/programmer?
There is 'Flash file to target': Standalone Flash Programmer | MCU on Eclipse
I hope this helps.
is that possiable to read the bin or hex file from my code. ?
Do you mean to load a bin or hex file from your code? Sure, but then you need to implement a bootloader or another reader which reads the data. This one reads S19 files: Serial Bootloader for the Freedom Board with Processor Expert
If this is about exporting your program code as binary file, then see Dump my Device Memory
Retrieving data ...