how to put scrolling option in data read from a file

S

sudhir

I made a application which takes input entries of different products
and store them in file using ios library.. Now I want to show the
complete information of all products one by one using scrolling. Could
u help me to do so.
 
W

Walter Roberson

I made a application which takes input entries of different products
and store them in file using ios library.. Now I want to show the
complete information of all products one by one using scrolling. Could
u help me to do so.

The C language itself only knows as much about user interfaces as
can be fit into the "write some characters out, read some characters in"
model. C itself has no Graphical User Interface (GUI) and so no
notion of a graphical window that might be scrolled up or down.
C itself also has no notion about terminal control sequences that might
allow the same sort of thing in a pure text context (e.g., as is
done by the 'less' program.)

So, about all you can do in C itself is write some data out for the
user, then write out a "Press return to continue" prompt, and then
read a character from input. (Be sure to through through the input
until you find a newline, or whatever the user typed before they
pressed return will still be in the buffer.)


If you need scroll bars and so on, then you should ask in the programming
newsgroup dedicated to your particular operating system, as such things
are not portable.
 
M

Martin Ambuhl

sudhir said:
I made a application which takes input entries of different products
and store them in file using ios library..

"ios" is the name of a namespace (not library) in C++.
<deals with the C programming language. For questions
about the different language C++ go to <
Before posting there, check their FAQ and review several weeks of posts.
However, I doubt that your question will be topical even in
Now I want to show the
complete information of all products one by one using scrolling.

"Scrolling" is usually handled by non-standard libraries which are
specific to your implementation or platforn,
Could
u help me to do so.

Sure: the word 'you' has three letters.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top