By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

how we save a file on network system

100+
P: 198
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
Apr 30 '08 #1
Share this Question
Share on Google+
2 Replies


debasisdas
Expert 5K+
P: 8,127
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.
Apr 30 '08 #2

100+
P: 198
Hi
will you give me some coding help
thanks

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.
May 1 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.