Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 15.08.03 13:42 
Hallo,
wie kann man sicher und schnell überprüfen ob eine datei binäy ist oder nicht ?

_________________
MFG
Michael Springwald, "kann kein englisch...."
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Fr 15.08.03 13:47 
Hi!

Es gibt keine Datei, die nicht als binary angesehen werden kann. Jede Datei ist letztlich eine Abfolge von Bits respektive Bytes, somit binär.

Du kannst höchstens prüfen, ob in einer Datei Ascii-untypische Chars auftauchen, um zu schauen, ob es sich um eine Ascii-Txt-Datei handelt.

Cu,
Udontknow
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 15.08.03 15:01 
wäre eine möglichkeit, gibt es aber noch andre ?

_________________
MFG
Michael Springwald, "kann kein englisch...."
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Fr 15.08.03 18:56 
Wofür denn? Jede Datei ist binär, wie dir UDontknow zu erklären versuchte.

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 15.08.03 19:29 
Aber es gibt doch assci dateien und bin dateien.
das heißt also ich muss die ganze datei prüfen ob sie assci ist oder bin ist.... gut, wenn es keinen anderen weg gibt...

_________________
MFG
Michael Springwald, "kann kein englisch...."
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Fr 15.08.03 19:46 
ascii-Daten sind auch binäre Daten!!!

_________________
Viele Grüße
Jakob