Question: Exercise - Read File Over Network Onto Screen This program will read a file over a network from a server and display the file on
Exercise - Read File Over Network Onto Screen
This program will read a file over a network from a server and display the file on the screen of the client. It will use a TCP/IP stream socket connection between a server and a client. It will consist of two programs. You can do it on two computers or on the same computer as long as the two programs are both running separately.
Server (read file, write over network):
The hvcc.txt file attached will reside on the server computer. The server program will use a port number for a connection with clients. The connection will use the server's host address (local host if using the same computer). The server program will be able to send a file to the client upon request of the file's name if that file exists (if it doesn't exist, it will just send back a message saying so). As you loop through the reading the file, write it over the socket line by line. You can set it up so only one file is read by each client at a time.
Client (read over network, write onto screen):
The client program will prompt the user to enter the server's host address or name (address or name of server host using getByName()) and the server's determined port number for a connection with the server. The user will also be prompted to enter a file name and will be sent to the server. The file should then be read back over the network and displayed onto your computer (in readable lines). As you loop through reading over the socket, write it onto the screen line by line. You can set it up so only one file is read each time the program is run
This the hvcc.text file
Computer Information Systems
The School of Business, with the Department of Computing and Information Sciences, offers several different degree programs in Computer Information Systems (CIS) to accommodate students pursuing a two-year terminal degree, as well as those seeking to transfer to a four-year institution.
All Computer Information Systems graduates possess a strong computer information system core. This common CIS core allows students to seamlessly transfer between the different degree programs as their goals become more defined. Core course work includes Programming and Logic, Analysis and Design of Information Systems, Project Management, Decision Support Systems and Database Management. Suffused throughout all CIS programs is a focus on people, processes, systems, security, collaboration and ethics.
Tailored specialization can be obtained by taking CIS elective courses that include: highly relevant programming languages (e.g., Java, C/C++, COBOL, VB.Net, Perl, Java and Assembly Language).
The coursework in the program increases employment opportunities in computing environments of public and private businesses. Common job titles for students completing the Computer Information Systems A.A.S. degree include:
Software Engineer Application Programmer Systems Analyst Web Designer/Developer System and Network Administrator Computer Technician Help Desk Support
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
