Ich versuche gerade Datensaetze Zeilenweise in eine Datei zu schreiben.
Etwa so:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
| var T: TFileStream; laenge: integer; begin T := TFileStream.Create(ExtractFilePath(Application.ExeName) + 'conversion\zzzz.txt', fmCreate); while ... do begin Zeile := inttostr(regel_i) + ';' + inttostr(regel_j) + ';' + inttostr(x) + ';' + inttostr(y) + #13#10; laenge := length(Zeile); T.Write( Zeile ,laenge) end; T.Free; end; |
Da kommt dann immer so etwas in der art bei Raus:
Quelltext
1:
| ,mœ ´�š øaÜ c � ?ƒPmœ ´�š p¨ß c ‘ _‚´�š ,mœ °× d � Àz@mœ ,mœ p¨ |
Was mache ich da Falsch?
Moderiert von
raziel: Delphi-Tags hinzugefügt.