|
-
Sep 13th, 2004, 03:34 PM
#1
Thread Starter
New Member
Web Service exits on file close
Web Service exits on any file close operation via
StreamWriter, TextWrtier or FileStream. This is inefficient because the Web Service has to be reloaded on every function call. Also Static or Public Shared variables become useless.
Sample code below.
Dim Success As StreamWriter = File.AppendText(CurDir + User + "_Success.Log")
Success.AutoFlush = True
Success.WriteLine(Record + ", " + DateTime.Now())
Success.Flush()
Success.Close()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|