Opening a stream on file with given file descriptor
Hi, I'm struggling to find a way how to create a read/write stream for given file descriptor (in Pharo 8 ideally). Is there a way? Thanks! Jan
Perhaps File >> connectToFileDescriptor: fileDescriptor writable: writableFlag followed by read/writeStream ? Not tested, just did a few searches in P8 image. ________________________________ From: Jan Vraný <Jan.Vrany@labware.com> Sent: Thursday, July 20, 2023 9:20:46 AM To: pharo-dev@lists.pharo.org; marianopeck@gmail.com Subject: [Pharo-dev] Opening a stream on file with given file descriptor Hi, I'm struggling to find a way how to create a read/write stream for given file descriptor (in Pharo 8 ideally). Is there a way? Thanks! Jan
On Fri, 2023-07-21 at 11:56 +0000, Miloslav.Raus--- via Pharo-dev wrote:
Perhaps
File >> connectToFileDescriptor: fileDescriptor writable: writableFlag
followed by read/writeStream ?
Ah, I missed this one. Thanks heaps! Jan
Not tested, just did a few searches in P8 image.
________________________________ From: Jan Vraný <Jan.Vrany@labware.com> Sent: Thursday, July 20, 2023 9:20:46 AM To: pharo-dev@lists.pharo.org; marianopeck@gmail.com Subject: [Pharo-dev] Opening a stream on file with given file descriptor
Hi,
I'm struggling to find a way how to create a read/write stream for given file descriptor (in Pharo 8 ideally). Is there a way?
Thanks! Jan
participants (2)
-
Jan Vraný -
Miloslav.Raus@cuzk.cz