Please use C++ to create a program to a. Show with no \"test.dat\" file Example:
ID: 3801202 • Letter: P
Question
Please use C++ to create a program to a. Show with no "test.dat" file Example: testing if file opened successfully HW Problem #4a & #4b: try this without with it! #include kiostream> llneeded for normal cin & cout #include II needed to read or write files on disk #include Iwill for exit need using namespace std; Use Notepad to create file of int main numbers & save as test dat 22400 15000 31700-1 int x Path assumed to be in same ifstream infile; directory as your source code infile open("test.dat"); llmust have file setup if (!infile) cout "Unable to open test.dat file''Explanation / Answer
1)
2)