|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Re-using a filestream in a loopI want to make a loop to read data from a succession of binary files
(filepaths of the files are in a string array). If I create a new filestream and from that a new binary reader before the start of the loop how can I redefine the filestream to look at a different file each time I go through the loop? Grateful for advice simonc wrote:
> I want to make a loop to read data from a succession of binary files You can make a new instance for each loop iteration:> (filepaths of the files are in a string array). > > If I create a new filestream and from that a new binary reader before > the start of the loop how can I redefine the filestream to look at a > different file each time I go through the loop? For Each f In files Using br = New BinaryReader(New FileStream(f, FileMode.Open)) ' do something with br End Using Next -- Andrew
Lots of ActiveX COM Controls are missing in "Choose Items" ?
ProcessStart(textfile) focus issue Need help printing multiple pages in VB.Net 2008 Adding time to date OLEDB v's Access's FE BE Connection VB.NET Books and Training Material when is web browser control really complete ByVal copy a variable design pattern examples string split by first occurens number |
|||||||||||||||||||||||