Can I get a FILE* from a HANDLE?
-
Hi, I have a HANDLE which is an unnamed pipe, so I can't open it the usual way with fopen. I want to use stdio functions like fscanf on it, so I'm looking for a way to obtain a FILE* from that HANDLE.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
-
Hi, I have a HANDLE which is an unnamed pipe, so I can't open it the usual way with fopen. I want to use stdio functions like fscanf on it, so I'm looking for a way to obtain a FILE* from that HANDLE.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
-
Hi, I have a HANDLE which is an unnamed pipe, so I can't open it the usual way with fopen. I want to use stdio functions like fscanf on it, so I'm looking for a way to obtain a FILE* from that HANDLE.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
Here is a good read - A Handy Guide To Handling Handles[^]
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)