Autor Beitrag
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 24.05.05 18:41 
Moin... ;)

Ich öffne mit fopen() eine Datei. Und lese dann per fgets() alle Zeilen bis zum Dateiende aus. Soweit so gut. Jetzt bin ich aber am "Ende" der Datei. Jetzt möchte ich nochmal alle Zeilen einlesen. Ich muss also wieder zum "Anfang" springen.

Wie mache ich das?

mfg, cu, WeBBy
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Di 24.05.05 19:13 
Mit fseek()

Bis neulich ...

edit: Oder rewind()
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 24.05.05 19:29 
Vielen Dank... ;) War genau das, was ich gesucht habe. Komisch, dass das nicht irgendwo bei fopen oder fgets mit drinsteht... :nixweiss:

Na, egal... ;)
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Do 26.05.05 21:02 
Oder einfacher: rewind()

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 27.05.05 08:26 
user profile iconUC-Chewie hat folgendes geschrieben:
Oder einfacher: rewind()


user profile iconGrendel hat folgendes geschrieben:
Mit fseek()
Bis neulich ...
edit: Oder rewind()


;)