Question: Need help writing the code that takes the command line argument with the file name, opens the file, counts the lines, allocates an array of

Need help writing the code that takes the command line argument with the file name, opens the file, counts the lines, allocates an array of space for the file and reads the file into that array
(I put a picture of what i have so far but i doubt it is even close to correct)
Note: this is in C language Not C+/++  Need help writing the code that takes the command line argument
with the file name, opens the file, counts the lines, allocates an
array of space for the file and reads the file into that

Spring 2018 ECE 2220 System Programming Concepts I of 3 Lab 5 -Strings- Typewriters and English In this lab, each student is to write a program called prog5.c looks for words in a dictionary which have certain properties as described below. The student should exhibit a proficiency in: Operations on Strings Dynamic Memory Allocation . File Operations Using Command Line Arguments Calculating and Storing Statistics Background Your program should assume the standard 'OWERTY keyboard as arranged below where I have designated the keys typed by the left hand and those typed by the right hand: Left Right Input Your program is to input two command line arguments: the first is the path and name of the dictionary file, dictionary, and the second is the path and name of the output file, output file, as given below. prog5 dictionary output_file

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!