Entwickler-Ecke
Dateizugriff - Piece C# code to Native Delphi Code
jcop - Mo 19.10.09 14:50
Titel: Piece C# code to Native Delphi Code
Hello Everybody,
Can someone help me out here, I have a piece of C-sharp code but I want to implement this in native Delphi code I searched for a equivalent list but cannot find one. Thanks in advance.
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| AC[] acArray = new AC[1]; bool flag = false; FileStream input = new FileStream(sFile, FileMode.Open, FileAccess.Read); BinaryReader reader = new BinaryReader(input); reader.BaseStream.Seek(2L, SeekOrigin.Begin); int num = reader.ReadInt32(); reader.BaseStream.Seek(9L, SeekOrigin.Begin); if ((reader.ReadInt32() == -1) & (num == 0x989d56)) { |
I'm intrested in the whole Filestream/Binaryreader pirce also a translation for the reader.readint32 part
is welcome.
again thanks in advance.
Johan
jcop - Fr 13.11.09 10:45
I have read about BITS/BYTES/ array of bytes etc.... But cannot get the complete picture of this.
I somebody is willing to help me out here with a conversion from C# code to Native Delphi then I would be gratefull. (even want to pay for it).
please if you're intrested in showing me how, send me a PM.
kind regards,
Entwickler-Ecke.de based on phpBB
Copyright 2002 - 2011 by Tino Teuber, Copyright 2011 - 2025 by Christian Stelzmann Alle Rechte vorbehalten.
Alle Beiträge stammen von dritten Personen und dürfen geltendes Recht nicht verletzen.
Entwickler-Ecke und die zugehörigen Webseiten distanzieren sich ausdrücklich von Fremdinhalten jeglicher Art!