Re: [BLACKBOX] How to concatenate ASCII files

From: [at]} <Robert>
Date: Thu, 26 Jul 2012 18:23:47 +0100

----boundary-LibPST-iamunique-1491323753_-_-
Content-type: text/plain

Rainer

Using Texts (* may *) be simplest for small files, but is very slow for big
files (10's or 100's of M Bytes).

I would forget the files were ASCII and treat them as just Bytes. Use
Files.Reader.ReadBytes, Files.Writer.WriteBytes, and a buffer (10 kByte ?)
inside a loop.

Regards

Robert



On 26/07/2012 17:02, Rainer Neubauer wrote:
> Hi all,
> in the near future I will have to programatically merge two or three ASCII files into one new file.
> Does anybody have a hint how to do this in a simple manner ?
> I had a look at the interface of module WinApi but could not find a procedure for this task.
> Reading the files line by line into a buffer and writing the contents to a new file seems to be a bit nasty.
>
> Best regards,
> Rainer
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2178 / Virus Database: 2437/5154 - Release Date: 07/25/12
>
>
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1491323753_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGZiaWRpcyBcZGVmZjB7XGZvbnR0YmwN
CntcZjBcZnN3aXNzIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYyXGZu
aWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZXQwIENvdXJpZXIgTmV3
O319DQp7XGNvbG9ydGJsXHJlZDBcZ3JlZW4wXGJsdWUwO1xyZWQwXGdyZWVuMFxibHVlMjU1O30N
Clx1YzFccGFyZFxwbGFpblxkZWZ0YWIzNjAgXGYwXGZzMjAgUmFpbmVyXHBhcg0KXHBhcg0KVX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gdG8gYmUgYSBiaXQg
bmFzdHkuXHBhcg0KPlxwYXINCj4gQmVzdCByZWdhcmRzLFxwYXINCj4gUmFpbmVyXHBhcg0KPlxw
YXINCj4gLS0tLVxwYXINCj4gVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9k
eSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMuT0JFUk9OLkNIXHBhcg0KPlxw
YXINCj5ccGFyDQo+IC0tLS0tXHBhcg0KPiBObyB2aXJ1cyBmb3VuZCBpbiB0aGlzIG1lc3NhZ2Uu
XHBhcg0KPiBDaGVja2VkIGJ5IEFWRyAtIHd3dy5hdmcuY29tXHBhcg0KPiBWZXJzaW9uOiAyMDEy
LjAuMjE3OCAvIFZpcnVzIERhdGFiYXNlOiAyNDM3LzUxNTQgLSBSZWxlYXNlIERhdGU6IDA3LzI1
LzEyXHBhcg0KPlxwYXINCj5ccGFyDQo+XHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVu
c3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRv
IExJU1RTRVJWQExJU1RTLk9CRVJPTi59fQCdFGFYXSA=
----boundary-LibPST-iamunique-1491323753_-_---
Received on Thu Jul 26 2012 - 19:23:47 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:00 UTC