CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 1999
    Posts
    35

    Writing to text file to......

    Hi.. i would like to know.. can i write something to a text file at a different computer, in a normal networking without having to share the hardisk drive.. maybe using api or something.. can someone tell me how it could be done...?? thanx


  2. #2
    Join Date
    Sep 1999
    Posts
    2

    Re: Writing to text file to......

    Hi there
    well u are gonna have a problem because if u do not share that drive or directory there is no way u can access or write to a file on another pc over a network. The target pc must first give access to a directory otherwise your app is not gonna know what path u are talking about.
    hope this helps


    Voyager


  3. #3
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    Re: Writing to text file to......

    Hi,
    Yes, You can do, theoritically... I will just give you the way.. You have to work on that...
    There is a concept Socket Programming. You can send a packet of data to another IP address. The process is like this:
    You have program client and server separately. Any computer can be client and any can be server. Ok.
    If design a small program (TSR type) which will only listen the incoming sockets. (This ok name as server). As soon as the socket arrives it will recieve and write on harddisk.(This is a local operation and no need to share)
    Then design a small program on another computer from where you wish to send the data. Simply in a socket bind the server Ip address and send the data.
    I think this is what you need. Socket programming is simple but more convinient in C++/C.




    Santulan

  4. #4
    Join Date
    Jul 1999
    Posts
    35

    Re: Writing to text file to......

    Any guide how to do it in vb.. I managed to do some active dll from vc and used it in vb but the program fail to send.. sometime it crashed the pc..


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured