PDA

View Full Version : how to reset the pointer at begining??



iswaryasenthilkumar
7th January 2015, 12:36
am having file which contains list of images sorted by linux
eg:
5.jpeg
4.jpeg
3.jpeg
2.jpeg
1.jpeg
here am reading each line and displaying image in widget when my list at end i want to read again first line.
how can i make to read first line again
can any one give me suggestion for this:confused:

Lesiok
7th January 2015, 13:47
Some pseudo code :
if( file.atEnd() )
file.seek(0);

iswaryasenthilkumar
7th January 2015, 14:19
Thank you its working

Some pseudo code :
if( file.atEnd() )
file.seek(0);