Autor Beitrag
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 23.07.02 11:18 
Hi Leutz,

Ich hab' ein Prob mit 'nem FileStream.
Nicht schon wieder BZip2, obwohl ich immer noch nicht weiß, was ich mit der Unit so machen kann, und wie überhaupt, aber trotzdem mit dem schreiben von Daten.

In einem Array hab' ich Dateinamen gespeichert.
Mit ein for-Schleife speichere ich jedes Element des Arrays in einen Stream. Will meine, ich öffne den Stream, starte die Schleife, speichere jeden Dateinamen, und am Ende wieder zu das Ding.
Wenn ich mir dann aber die Datei anschaue, merke ich, daß er nicht für jeden Dateinamen eine neue Zeile genommen hat, sondern alle Dateinamen ohne Punkt und Komma aneinanderreiht. Wie kann ich einen line-feed zwischen den einzelnen Schreibvorgängen erzwingen?

Tschüß
tommie-lie

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
mth
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 34



BeitragVerfasst: Di 23.07.02 13:27 
tommie-lie hat folgendes geschrieben:
Hi Leutz,
Wie kann ich einen line-feed zwischen den einzelnen Schreibvorgängen erzwingen?


Schreib ihn selber rein :-) Nach jedem Dateinamen eine #13#10 (CR/LF) Sequenz bzw. nur eine #10 (CR).
tommie-lie Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 23.07.02 13:49 
danke
ich hab's vorher schon mit /l/n probiert, aber dsas hat nicht geklappt.
Jetzt geht's

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert