Thread: Reading/writing a file from/into server

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    5

    Reading/writing a file from/into server

    Hello.

    Please disregard my similar posts to this one on C and C++ programming areas; those threads may be deleted (I was adviced to post this here instead).

    I'm making a game and would like to have hiscore table saved on my own server in the net. However I don't have any knowledge about programming server related things on C.

    So, could someone enlighten me?

    To put this matter in smaller pieces, below are two topics

    1) How to connect to a server (and close connection)
    2) How to read (and write) file from (into) a server

    Answers and exmaple codes highly appreciated.

    I would like to keep this matter as simple as possible: as ANSI C as possible.

    I apologize if this matter has been discussed earlier on this forum.

    Thank you.

    --
    Markus

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Um if you are asking these questions you most deffinatly should not be programming this. ANSI C has no concept of servers or clients or sockets so it is impossible to do this with pure ANSI C. HOwever you can google for Beej's guide to networking, and infact URL's to the various beej's mirrors are litered throuhg this forum so you might want to read some of those posts.

  3. #3
    I am me, who else?
    Join Date
    Oct 2002
    Posts
    250
    Sockets are not really ANSI C'ish. As said before look for Beej (google it) and you will find basic information of server setups. I would say master 1 and after getting that THOROUGHLY down, then try extending to 2. I guarantee you, that you will need a decent understanding of sockets and server setups before you try 2.
    Last edited by dpro; 08-12-2005 at 12:41 PM. Reason: Bad spelling

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    You also might try playing with them in another language that hides some of the evilness of sockets from you in C.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Reading/writing a file from/into server
    By blue4x in forum C++ Programming
    Replies: 2
    Last Post: 08-11-2005, 04:43 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM