fscanf in CUDA

What is it in CUDA?

I did extern “C” at the top of the .cu file after #include statements.

You want to call it from a kernel?
No such thing.

Hmm… Is there particular reason on why is it not supported? I could pass FILE to the kernel, but I couldn’t read it? Hmm…

How would you read a file from the device without the CPU basically doing everything? This seems like a silly idea!

Read it all then pass its content to the kernel.