Question: **************PLEASE EXAMINE MY ANSWER AND RESPOND TO IT!!!!!!!!!!!!!!!!!!!!!!!! DO NOT JUST POST A GENERAL SOLUTION AS I NEED SPECIFIC HELP ON SPECIFIC PARTS OF THE

**************PLEASE EXAMINE MY ANSWER AND RESPOND TO IT!!!!!!!!!!!!!!!!!!!!!!!! DO NOT JUST POST A GENERAL SOLUTION AS I NEED SPECIFIC HELP ON SPECIFIC PARTS OF THE PROBLEM, NOT JUST A GENERIC ANSWER.**********************

Write a C program that will display text on any terminal. The program should first prompt the user for the name of the device ?le for the terminal on which to display output, as well as the output to display. It should then perform the necessary I/O operations. This process should repeat until the user decides to exit the program.

FEEDBACK: The only part I cannot get to work is writing and reading to the file. Please help me with this section of my code.

MY ANSWER:

**************PLEASE EXAMINE MY ANSWER AND RESPOND TO IT!!!!!!!!!!!!!!!!!!!!!!!! DO NOT JUST POST

A GENERAL SOLUTION AS I NEED SPECIFIC HELP ON SPECIFIC PARTS OF

#include int main) FILE *fpt; char c[30]; char words; char text[30]: while(1) printf("Enter the terminal to display in (Q to quit): "); scanf("%s" if(c[0] 'Q') return 0; printf("Enter the text to display:"); scanf("%s", &words); if(c[9] '0') == fpt fopen( "c","w"); fprintf(fpt, "%s", &words); fclose(fpt); fpt = fopen ( "c","r"); fscanf(fpt,"%s", text); printf("%s ", text); fclose(fpt); else if(c[9] |-'0') printf("Unable to open %s for writing", &words)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!