web file i/o

This is a discussion on web file i/o within the C++ Programming forums, part of the General Programming Boards category; does anyone know if it is possible to access files on the internet for input and output with fstream.h? and ...

  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, 05: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21