eof
How to know if the next character is EOF in C++
I\'m need to know if the next char in ifstream is the end of file. I\'m trying to do this with .peek():[详细]
2023-03-12 02:23 分类:问答Properly Using EOF in C
I\'m new to programming and I really want to learn writing a decent program. I am not exactly sure how to use EOF. My program was compiled and when I run it, it works fine except for the EOF part. The[详细]
2023-03-10 01:51 分类:问答PHP EOF showing only one result [duplicate]
This question already has an answer here:开发者_如何学JAVA Closed 11 years ago. Possible Duplicate:[详细]
2023-03-09 17:46 分类:问答Fill shape with asterisks
I wrote a program to fill in closed figures with asterisks. For some reason it isn\'t accepting the sentinel value EOF Ctrl+D.[详细]
2023-03-09 17:13 分类:问答Prevent FIFO from closing / reuse closed FIFO
Consider the following scenario: a FIFO named test is created. In one terminal window (A) I run cat <test and in another (B) cat >test. It is now possible to write in window B and get the outpu[详细]
2023-03-05 03:43 分类:问答eof problem c++
i am using Dev C++ on windows xp #include <iostream> #include <fstream> #include <string>[详细]
2023-02-28 19:51 分类:问答Reading binary files
I\'ve to read data from binary file. This binary data format is: 0x00 0x00 0x01 - is delimiter after this delimiter there is raw data byte array.[详细]
2023-02-27 16:44 分类:问答Why do I require multiple EOF (CTRL+Z) characters?
As a little background, I am quite new to the C Programming Language and as such have been attempting to work through some of the exercises in the second edition of the Kernighan & Ritchie manual.[详细]
2023-02-25 14:05 分类:问答End of nonblocking file
How is end of file detected f开发者_运维技巧or a file in nonblocking mode?At least on POSIX (including Linux), the obvious answer is that nonblocking regular files don\'t exist. Regular files ALWAYS b[详细]
2023-02-25 10:23 分类:问答UNIX sockets: How to check if TCP stream is closed for reading or EOF?
I am writing a simple client which reads binary data through a TCP stream. Since the file is sent part-by-part I have a loop similar to this one:[详细]
2023-02-24 08:39 分类:问答