what will be the fasted and cpu smallest programming language for this job ?

Hello all
i have atask to create daemon that will have to extract data from the db save it and manipulate data in memory
and then write files from that data , the files are not big something like 10k in size , but this daemon will need to do it all the time
what will be the best programming language to do that ?
script ( perl / csh + unix util's ? c++ ? java (i have no problem in any of them )

Fastest might be C; depends if you have an interface for your type of DB.

well its mysql so i can connect from any lang
what about perl ? can it do the job ?

perl can certainly do the job, but I agree that a good C solution will be fastest and use the smallest amount of cpu resources.

ok thanks , what will be the difference between c and c++ ?
significant?

Afaik C++ offers OOP, Object-oriented Programming. I think that is not needed for what you are going to do.