AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Algorithmen, Datenstrukturen und Klassendesign FInd duplicate array and a quick way to search item per line on file??
Thema durchsuchen
Ansicht
Themen-Optionen

FInd duplicate array and a quick way to search item per line on file??

Ein Thema von user · begonnen am 19. Nov 2010 · letzter Beitrag vom 19. Nov 2010
Antwort Antwort
user

Registriert seit: 13. Jul 2010
25 Beiträge
 
Delphi 2 Desktop
 
#1

AW: FInd duplicate array and a quick way to search item per line on file??

  Alt 19. Nov 2010, 11:10
Your first example is not sorted! But if it would be sorted then you're right.

-- EDIT
You can use Hier im Forum suchenAssignFile(), Hier im Forum suchenReset(), Hier im Forum suchenSeek() and Hier im Forum suchenReadln to get a special line of a file.
Ups sorry!

Okey, I'll try. I have to check again that "AssignFile" doesn't load the file into memory. Thanks.
  Mit Zitat antworten Zitat
Benutzerbild von SirThornberry
SirThornberry
(Moderator)

Registriert seit: 23. Sep 2003
Ort: Bockwen
12.235 Beiträge
 
Delphi 2006 Professional
 
#2

AW: FInd duplicate array and a quick way to search item per line on file??

  Alt 19. Nov 2010, 12:06
if each line of your file has the same length you can calculate at which position the data is.
To access the file a prefer TFileStream
Jens
Mit Source ist es wie mit Kunst - Hauptsache der Künstler versteht's
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:16 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz