LoginSignup
0
0

More than 5 years have passed since last update.

c++ builder > バイナリファイル読込み > TFileStream使用 > fs->Seek(2, soFromBeginning);

Last updated at Posted at 2015-08-19
動作確認
C++ Builder XE4

http://qiita.com/7of9/items/ddc91dbffbf359272084
でファイル読込するとき、シークの仕方。

fs->Seek(2, soFromBeginning);

  • soFromBeginning : Offset はリソースの始めを原点とする。Seek メソッドは位置を Offset に移動する。Offset >= 0 でなければならない
  • soFromCurrent : Offset はリソースの現在位置を原点とする。Seek は,Position + Offset へ移動する
  • soFromEnd : Offset はリソースの終わりを原点とする。Offset <= 0 でなければならない。ファイル末尾からのバイト数をマイナスで示す
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0