External C++ Stored Procedures reading files

Extensibility
Teradata Employee

External C++ Stored Procedures reading files

Can someone please provide an example of an external stored procedure in C++ which can read files from disk and process that data in the C++ procedure ? This procedure will need to be called from SQL like a normal C++ external stored procedure - e.g. call my_external_cpp_proc();

Where should the files be located ?

Can the C++ stdio.h functions to read files be used, or are there any Teradata C++ library functions available for this ?

We are on TD 14.0 and the TD 14.0 manual does not seem to have an example of this.

Thanks.

- Rahul.