Thread: web file i/o

  1. #1
    Unregistered
    Guest

    web file i/o

    does anyone know if it is possible to access files on the internet for input and output with fstream.h? and if so, what should the path in the open() function be? example file name: "http://www.tvbs.org/jeeneeus/test.dat"

    thanks!

  2. #2
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Nope, it's not.
    You'll need winsock for that.

  3. #3
    Unregistered
    Guest
    how would i do so with winsock?

  4. #4
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    First of all, you'd have to connect to the server via Telnet or FTP -> login -> switch directories -> open the file -> write -> close the file -> disconnect

    As you can see, this is no simple task. I suggest reading some winsock tutorials, and perhaps a book on the TCP/IP protocal.

  5. #5
    Registered User Sekti's Avatar
    Join Date
    Feb 2002
    Posts
    163
    +++
    ++
    + Sekti
    ++
    +++

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. File I/O Assertion Failure in VS2008
    By clegs in forum C Programming
    Replies: 5
    Last Post: 12-25-2008, 04:47 AM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM