My NEW ( :p ) question is, if you use a String class the that code would without doubt include the same amount of "new" if you get me. Because how else are you going to make a array longer as needed. Then you might say why don't just make the array as long as you need it, but when you don't know how long you need it. (A file can be very short or long ):rolleyes:
You are "newing" one char at a time and you want this to e fast. Id totally rethink your approach and try again. Each call to new will cost you in efficiency terms about 8* a normal function call. So "newing" a single char for everyone read would really slow this up like glue.