|
-
Jan 11th, 2005, 03:52 PM
#1
Thread Starter
Fanatic Member
Whats better.....
I have to loop though a directory listing and search a bunch of files.
for each file file in files
fs = New FileStream(...somefile..)
sr = New StreamReader(.....)
next
Is there a way I can just create these objects once and then just set the path to them through some property? It seems that doing it this way would cause preformance issues.
Also, is there anything wrong with setting a String variable to Nothing verse setting it to = "", preformance wise.
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
|