| | |
How to check if a named pipe(file) is empty
![]() |
•
•
Join Date: Apr 2008
Posts: 74
Reputation:
Solved Threads: 1
I need to check if a named pipe is empty. I am cycling through about 10 of them and if its empty I don't want to block until there is something in it I just want to move on to the next one. Is there any way to check if the named pipe is empty before I read? Its just a file and I have a file descriptor so checking the file would probably work as well. I can't seem to find a way to do this on google.
Thanks
Thanks
![]() |
Similar Threads
- Error 231 ( All Pipe instances are busy) (C++)
- Trouble using nohup with & (Getting Started and Choosing a Distro)
- how can i check for empty text file? (C++)
- How to check if a file is empty (VB.NET)
- Named Pipe (FIFO) (C++)
- Empty text file? (C++)
- open a empty CSV file (Python)
- file unable to open (C++)
Other Threads in the C++ Forum
- Previous Thread: Lottery rows without displaying twice?
- Next Thread: memory leak
Views: 368 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for C++
algorithm api array arrays assignment beginner binary c++ c++borland c/c++ calculator char class classes code compile compiler constructor conversion convert count delete dll dynamic encryption error file files filestream forms fstream function functions game givemetehcodez graph graphics gui helpwithhomework homework http iamthwee input int lazy linker list loop loops map math matrix member memory multidimensional network newbie number object objects opengl output parameter pointer pointers problem program programming project qt random read reading recursion recursive reference server sort sorting spoonfeeding string strings struct student studio template templates text time tree variable vc++ vector video visual visualstudio win32 window windows winsock





