I am writing a program that reads in information from a text file into an array. I made a struct containing all the components of the text file and within that struct i have sub structs. I want to read a date from that text file. I want to use the peek function to read the numbers then stop at each '.'. How would I incorporate that function into my program? Sorry if my problem still doesn't make sense. If it doesn't I will try my best to explain again. I am still new to programming. Here are the functions and structs Im using:
struct Date
{
double month;
double day;
double year;
};