Outputting to multiple files

jimmyh01

New member
Joined
Sep 3, 2007
Messages
4
Programming Experience
Beginner
Hi Guys,

A little help please.

I need to output data from an array into files of max 20,000 lines in size. Im currently using IO.StreamWriter but dont how to, if its possible at all, to change the path of the output to point to the new file once the 20000 limit is reached.

Below is a pic of my code if it helps.
2002165346276646729_rs.jpg


Thanks in advance for you help

James :)
 
IO.File.CreateText function returns a new StreamWriter instance, just assign this to your Writer variable. Be sure to Close your previous (current) StreamWriter first.
 
Back
Top