0

Hello I have created a sucsessful prime number finder however I wish to retrive the start number from a file the last line shows how I tried to do this however it failed any solutions ?

```
/* By Kelechi Nze
My first prime project*/
#include <windows.h>
#include <iostream>
#include <fstream>
#include <string>
#define NEWLINE "\n"
using namespace std;
struct primes //My Prime number structure
{
fstream startnumb; //The starting number file
ofstream passnumb; //Passnumb: where primes are stored
int number, factor, divider; /*Number: The actulal prime number "finder"
factor: What's a factor
Divider: What to divide the prime.number with to find if there is a prime there*/
}prime; //Only one member in the structure ? Yes !
prime.passnumb.open("UserStorage.txt");
prime.startnumb.open("startnumber.ini")
prime.number = prime.startnumb;
```