Top "Peek" questions

Refers to a non-destructive operation performed on sequential, collection-like data structures that have the notion of "top element" or "next element", such as stacks, queues and streams.

peek at input buffer, and flush extra characters in C

If I want to receive a one character input in C, how would I check to see if extra characters …

c input stdin flush peek
How to look at the next line of a file in Perl

I have a piece of code which opens up a file and parses it. This text document has a redundant …

perl parsing search peek
synchronized LinkedList - peek

A LinkedList has convenient peek, pop, ... methods. Unfortunately, I need a thread-safe LinkedList. So, my first idea was to wrap …

java linked-list thread-safety peek
C++ fstream function that reads a line without extracting?

In C++, is there a function in the fstream library (or any library) that allows me to read a line …

c++ fstream extraction peek
peek() Multiple Places Ahead?

Lets say I have an outer while loop to read each character and output it to console. I also want …

c++ peek
C#: Implementing NetworkStream.Peek?

Currently, there isn't a NetworkStream.Peek method in C#. What is the best way of implementing such a method which …

c# stream byte networkstream peek