Autor Beitrag
winx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Di 04.07.06 16:02 
Hallo,

ist es möglich eine Textdatei im readonly Modus zu öffnen und den Inhalt in einer Listbox oder ähnlichem anzuzeigen.

Das besondere ist, das ich immer, wenn die Datei von außen geändert wird, die Änderung auch in meinem
Programm mitbekommen will, ohne in einer Endlosschleife ständig auf die Datei zugreifen zu müssen ?!?

Danke,
winx
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6386
Erhaltene Danke: 146

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 04.07.06 16:14 
Ich habs noch nicht ausprobiert, aber der FileSystemWatcher mit dem Ereignis Changed sollte der richtige Ansatz sein.
kiar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 51



BeitragVerfasst: Di 04.07.06 16:45 
moin,

Jasocul hat völlig recht.

hier ist die dazugehörende Doku msdn2.microsoft.com/...mwatcher(d=ide).aspx

raik
winx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Mi 05.07.06 09:35 
danke, werd mir das mal angucken