Autor Beitrag
DerHorst
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31

windows200
delphi 6 PE
BeitragVerfasst: Mi 06.10.04 19:19 
grüß euch!

gibts vielleicht schon ne funktion mit der ich einfach ein 2d array abspeichern und landen kann? konnte im google nichts brauchbares finden.
sonst müßte ich mir was aufweniges ausdenken.



viele grüße

horst
Maweki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 197

Ubuntu Linux
Lazarus
BeitragVerfasst: Mi 06.10.04 19:24 
wenn du sagst, wie groß der Array is und welche Datentypen der beinhaltet, können wir dir ja vielleicht bei einer aufwendigen Lösung helfen ;)

also ich denke nich, dass es da nen ganz einfachen weg gibt...
DerHorst Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31

windows200
delphi 6 PE
BeitragVerfasst: Mi 06.10.04 19:58 
ups die infos

array of string.

array[i,20]

i ist dynamisch, der 2. wert immer 20.



grüße

horst
Maweki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 197

Ubuntu Linux
Lazarus
BeitragVerfasst: Mi 06.10.04 20:02 
Empfehlung:
Schreibe deine i Strings in einen String mit Trennzeichen. Mache 20 untereinander und speichere das ganze mit TStringList als eine Datei deiner Wahl...

so würde ich es zumindest machen... ;)
kachel81
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Do 07.10.04 16:03 
ja, oder anders herum
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 07.10.04 16:08 
Setze einen Pointer auf den Anfang des Arrays, und schreibe das dann als Buffer in die Datei. Die Anzahl Bytes kannst du mit SizeOf ermitteln.

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!