C Help I wrote this program and dont understand how to actua
C++ Help! I wrote this program and don\'t understand how to actually open the file once I run it, once it says \"Enter the name of the file with e-mail addresses:\"
**Sample Output
If this is the contents of our input file:
Then both the console output and the output file’s contents will be:
Since we don’t know how many email addresses to expect, use an overly large array and treat it as a partially-filled array.
Because we’re practicing with arrays, make sure the input file is closed before you do any outputting (this will force us to store the info in arrays). We want to use the .find and .substr methods to extract the username part of the email addresses.
****Need to include
******This is the program I wrote:
Solution
first compile and execute the program. it ask for \"Enter the name of the file with e-mail addresses: \" , if your application and input file are in same directory directly enter the file name with its extention example:input_data.txt or email_address_file.txt.
if your input file is in different directory enter full path for example if my input file is in C drive with name \"input_data.txt\". then enter the file name as shown below
after input file name is given it asks for output file name follow the same above procedure.
output:
Enter the name of the file with e-mail addresses: input_data.txt Enter the name of the file name to write usernames: output_data.txt mrs.gloriamackenie shand_lee franklinosayandescott westernunion1233
