how we save a file on network system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • veer
    New Member
    • Jul 2007
    • 198

    how we save a file on network system

    hi
    i have a program in which i want to save a file on other system which is on my LAN network i use this coding
    it works fine but how we append this file because it create new file every time when i execute program but i want if file is not in the specified location then create or if file is present then open it and append it how is it possible
    sLog = ("\\BLACK6FL2\d \Log.txt")
    Open sLog For Output As #1
    str = Now
    MsgBox "The Programe Run At " & str
    Write #1, str
    Close #1

    thanks in advance
    varinder
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    if the file exists

    1.read the content of the file.
    2.append the new data to that.
    3.delete the old file.
    4.create a new file with the content in step2.

    Comment

    • veer
      New Member
      • Jul 2007
      • 198

      #3
      Hi
      will you give me some coding help
      thanks

      Originally posted by debasisdas
      if the file exists

      1.read the content of the file.
      2.append the new data to that.
      3.delete the old file.
      4.create a new file with the content in step2.

      Comment

      Working...