Difference between revisions of "Program Examples:File Handling:Open Read Write"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Axystems:Template:File_Handling_Example |DESCRIPTION= The following example demonstrates the set up of a TCP-IP server that opens connection with multiple clients.<br/> <br...")
 
Line 2: Line 2:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
The following example demonstrates the set up of a TCP-IP server that opens connection with multiple clients.<br/>
+
The following example demonstrates how to open a file in different modes (Read Only, Write Only, Append),<br/>
<br/>
+
how to read from and write to the file, and how to manipulate the file pointer.<br/>
The server opens a socket and blocks on "Accept" until a client gets connected. Then an exchange of messages takes place and the server<br/>
 
closes the connection and gets blocked again waiting to accept the next client.<br/>
 
<br/>
 
 
<br/>
 
<br/>
  

Revision as of 11:18, 6 March 2014