Question: In C programming language using pointers can use any txt file with random names and numbers to read from it int main(void) { char name[30]
In C programming language using pointers can use any txt file with random names and numbers to read from it
int main(void) { char name[30] = {0}; FILE *rptr; FILE *wptr; int x; unsigned int account = 0; double balance = 0; wptr = fopen("input.txt","w"); if((rptr = fopen(".txt","r"))==NULL) { puts("File could not be opened"); } else

Create a program that will read from a file named "input.txt" that follows the same format from class. The program will prompt a user for input. The user will choose from 4 choices 1. Display all positive balance accounts. 2. Display all negative balance account:s . Display all zero balance accounts 4. End program. The program will display the contents of the file based on the user input. The program will write all choices made to a file named "output.txt" Submit the program that prompts for user input. Create a program that will read from a file named "input.txt" that follows the same format from class. The program will prompt a user for input. The user will choose from 4 choices 1. Display all positive balance accounts. 2. Display all negative balance account:s . Display all zero balance accounts 4. End program. The program will display the contents of the file based on the user input. The program will write all choices made to a file named "output.txt" Submit the program that prompts for user input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
