I currently have something like this in my code

For intIndex = 1 To 1000
            objWriter.Write("a")
Next intIndex

Is there a faster way to write to a file? Especially for higher values of intIndex, doesnt matter if Im writing characters or whatever. Im just trying to fill a file full of data as fast as possible.

I know that for text and .DAT files you can use the StreamReader function which is much better

yeah Jbennet is rite

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.