Home > Ask the Microsoft .Net Development Experts > Visual Studio .NET Questions & Answers > Best approach for merging text files using arrays
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

Best approach for merging text files using arrays

Mark Belles EXPERT RESPONSE FROM: Mark Belles

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 31 January 2005
What is the best approach for merging a bunch of text files together using arrays?

>
EXPERT RESPONSE
You question puzzles me. What do arrays have to do with your ability to "merge" files of any type? If you are simply trying to "merge" the data of several files into one larger file, I would recommend simply opening each file and reading directly into a separate destination file. Rinse and repeat reading each source file into and appending it to the end of the choosen destination file. Try creating a stream to read from the source file, and a stream to write to the output file. Read from one, and write to the other.

If you are trying to read everything into memory, then I would suggest creating a wrapper class to help identify the data from the file along with the file information, so you can keep things organized. After that, there isn't much I can advise you on.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Visual Studio .NET
Load a DSL domain model instance file programmatically
Descriptions of symbols in the class view of a .NET solution
What's the best approach for enumerating network resources?
How to enable a line-by-line code walkthrough
Changing a C++ Makefile project to a Utility project
How can I configure Visual Studio.NET 2002 to use the .NET Framework 1.1?
Changing a datagrid column to read-only=false based on variable
Resizing controls on a form
Can I use VS.NET on a server that's not upgraded to .NET Framework?
No extensibility folders

Visual Studio .NET
Load a DSL domain model instance file programmatically
Calling via command prompt from ASP.NET
On line-by-line analysis in VS .NET
Descriptions of symbols in the class view of a .NET solution
What's the best approach for enumerating network resources?
How to enable a line-by-line code walkthrough
Changing a C++ Makefile project to a Utility project
How can I configure Visual Studio.NET 2002 to use the .NET Framework 1.1?
Changing a datagrid column to read-only=false based on variable
No extensibility folders

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts