Question: Using c# please Design a program that reads an ASCII text file (provided) one byte at a time and produces an output file that contains
Design a program that reads an ASCII text file (provided) one byte at a time and produces an output file that contains the frequency count of how many times each character appears in the input file. Do not sort the output. A character frequency class instance must be used to represent each unique character in the file (see below. For this exercise, the character frequency objects must be processed and stored using a Vector or equivalent). Reading the entire file into memory is prohibited. C++ and Java programs are expected to use the Vector data structure and C# and VB programs are expected to use the ArrayList data structure. Vector Documentation ://msdn.microsoft.c library/9xd04bzs.a Java http://docs.oracle.com/iavase/7/docs/api/iava/util/Vector.htm C#/VB ( .NET) For example, given the sample input file: Hello. Would yield the following output file (13) 1 (72)1 e(11)1 1(108) 2 o(111) 1 The output file must follow the format presented above. Character(ASCII Value) (tab) Frequency. Note that formatting anomalies are expected due to the nature of the characters themselves (e.g., the tab character, carriage return, etc.) and will not cause a point deduction. Th e program should be able to be executed from the command line using the following syntax: programname.exe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
