PDA

View Full Version : input file



09-22-2001, 07:23 AM
If I want to get some values, such as vertexes of polygon, color, center and radius of circle, etc., from user, how can I do? Can I use #include <fstream.h> and read input values from dat file?

dan-leech
09-22-2001, 07:41 AM
YES! But it too dificult! Use FILE *file; it more isy. #include <windows.h> if i correct

Gavin
09-24-2001, 01:41 AM
Seems like a bizarre question. Are you asking an OpenGL graphics list how to read values into a C program!? Or are you asking how to open a file in C. Maybe learn C before doing the OpenGL bits...