Yes, i have to create a new file fith the modifications. All what i've done for now is to copy the content of the original file in a stream and paste it in the new file, without any mofication
Do you have to modify the file? Create a new file with the modifications? Or get the file in memory but modified?On Sat, May 16, 2015 at 6:05 AM, Vincent BLONDEAU <vincent.blondeau@polytech-lille.net> wrote:Hi,
You can do it by using on a subclass of WriteStream "peek" and "nextPut:" methods. Or you can transform the stream into a Collection by using "contents" and do almost everything you want.
Cheers,
Vincent
-----Message d'origine-----
De : Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] De la part de valmy roi
Envoy�� : samedi 16 mai 2015 07:48
�� : pharo-dev@lists.pharo.org
Objet : [Pharo-dev] Usage of stream
Hi everyone,
I have a stream (read from a file) and i want to iterate through it in order to replace every occurences of a special character by another one. how can i do it ?
--
Kenfack Valmy-Roi
��Ing��nieur des travaux en Informatique de Gestion/ Analyste Programmeur El��ve ing��nieur de conception en g��nie logiciel Institut Sup��rieur du Sahel Email : roykenvalmy@gmail.com
Tel: +237 22 11 01 87/ +237 676 94 23 01 / +237 699 04 0612