Docsity

Network Programming Lab 3: File Handling and Dynamic Memory Allocation, Exercises of Network Programming

Partial preview of the text

Download Network Programming Lab 3: File Handling and Dynamic Memory Allocation and more Exercises Network Programming in PDF only on Docsity!

NETWORK PROGRAMMING LAB

Go through the topic File handling then perform the following tasks.

TASK #1:

Through dynamic memory allocation make a file of port # & IP address. The port # & IP address will be entered by user using structures.

Struct1line{

Char IP;

int port;

};

TASK #2:

Create a file by your own open it in read only mode. And display its IP address a and port numbers and display them on screen in the same format.

docsity.com