I've simply put the line to print to the file inside a for loop in order print it five times yet nothing is being printed. My code is as follows:
int main() {  
    ofstream (fileAccess);  
    fileAccess.open ("fileName.txt", ofstream::app);  
    for (int i; i < 5; i++) {  
        fileAccess << "Hello World!";  
    }  
    fileAccess.close();  
}
Please help
 
    