write a c program that reads this file and creates a normal human-readable text file from its contents. the new file should be called grades.txt. in this file, the data should appear in the same order, one record per line, but neatly aligned into fixed-width columns.

Respuesta :

         FILE *in_file  = fopen("name_of_file", "r"); // read only

         FILE *out_file = fopen("name_of_file", "w"); // write only

         

         if (in_file == NULL || out_file == NULL)

           {  

             printf("Error! Could not open file\n");

             exit(-1); // must include stdlib.h

           }

         

         fprintf(file, "this is a test %d\n", integer);

         fprintf(stdout, "this is a test %d\n", integer);

         printf(         "this is a test %d\n", integer);

         fscanf(file, "%d %d", &int_var_1, &int_var_2);  

         fscanf(stdin, "%d %d", &int_var_1, &int_var_2);  

         scanf(        "%d %d", &int_var_1, &int_var_2);

C Programming :

          C is a programming language for general-purpose computers. Dennis Ritchie invented it in the 1970s, and it is still widely used and influential today. C's features are designed to accurately reflect the capabilities of the targeted CPUs. C, the successor to the programming language B, was created by Ritchie at Bell Labs between 1972 and 1973 to build utilities that ran on Unix. It was used to re-implement the Unix operating system's kernel. C gradually gained popularity during the 1980s. C compilers are available for almost all modern computer architectures and operating systems, making it one of the most widely used programming languages. Since 1989, ANSI (ANSI C) and the International Organization for Standardization have standardised C.

             C is an imperative procedural language with a static type system that supports structured programming, lexical variable scope, and recursion. It was created to be compiled in order to provide low-level memory access and language constructs that map efficiently to machine instructions, all while requiring minimal runtime support. Despite its low-level capabilities, the language was designed to promote cross-platform development. With few changes to its source code, a standards-compliant C programme written with portability in mind can be compiled for a wide range of computer platforms and operating systems.

To learn more about c program refer :

https://brainly.com/question/15683939

#SPJ4

C is a programming language for general-purpose computers. Dennis Ritchie invented it in the 1970s, and it is still widely used and influential today.  

 What is mean by C Programming ?

C is a programming language for general-purpose computers. Dennis Ritchie invented it in the 1970s, and it is still widely used and influential today. C's features are designed to accurately reflect the capabilities of the targeted CPUs. C, the successor to the programming language B, was created by Ritchie at Bell Labs between 1972 and 1973 to build utilities that ran on Unix. It was used to re-implement the Unix operating system's kernel. C gradually gained popularity during the 1980s. C compilers are available for almost all modern computer architectures and operating systems, making it one of the most widely used programming languages. Since 1989, ANSI (ANSI C) and the International Organization for Standardization have standardised C.

 FILE *in_file  = fopen("name_of_file", "r"); // read only

        FILE *out_file = fopen("name_of_file", "w"); // write only

 

        if (in_file == NULL || out_file == NULL)

          {  

            printf("Error! Could not open file\n");

            exit(-1); // must include stdlib.h

          }

       

        fprintf(file, "this is a test %d\n", integer);

        fprintf(stdout, "this is a test %d\n", integer);

        printf(         "this is a test %d\n", integer);

        fscanf(file, "%d %d", &int_var_1, &int_var_2);  

        fscanf(stdin, "%d %d", &int_var_1, &int_var_2);  

        scanf(        "%d %d", &int_var_1, &int_var_2);

            C is an imperative procedural language with a static type system that supports structured programming, lexical variable scope, and recursion. It was created to be compiled in order to provide low-level memory access and language constructs that map efficiently to machine instructions, all while requiring minimal runtime support. Despite its low-level capabilities, the language was designed to promote cross-platform development. With few changes to its source code, a standards-compliant C programme written with portability in mind can be compiled for a wide range of computer platforms and operating systems.

To learn more about c program refer to :

brainly.com/question/15683939

#SPJ4