Outsourcing calculations

Hi,

i have to do heavy mesh deformation and thought about sourcing out that part to a fast c programm. Is there any interface i can use to import export data? especially collision points (export) and the new calculated mesh (import).