BinaryWriter Array

  • Thread starter Thread starter heather.luiggi
  • Start date Start date
H

heather.luiggi

Is it possible to create an array of BinaryWriters? I need twenty
BinaryWriters available to filter data into from a larger binary file.
I would like to be able to access them by index rather than creating a
large If statement. If is is possible to create an array of
BinaryWriters, how do you do it? TIA!
 
Is it possible to create an array of BinaryWriters? I need twenty
BinaryWriters available to filter data into from a larger binary file.
I would like to be able to access them by index rather than creating a
large If statement. If is is possible to create an array of
BinaryWriters, how do you do it? TIA!

BinaryWriter[] writers = new BinaryWriter[20];
for (int i = 0; i < 20; i++)
writers = new BinaryWriter();

Best Regards,
Dustin Campbell
Developer Express Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top