Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Working with files in c++ unmanaged

Working with files in c++ unmanaged

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clint1982
    wrote on last edited by
    #1

    Hello I want to work with files unmanaged. I've been using fstream for file i/o but the problem is that if the file is greater than the maximum value of long I am not able to seek within it since the offset in the seek command doesn't accept values greater than long. Is there any other way I should work with files ? (unmanaged, not using system.dll) Clint

    M 1 Reply Last reply
    0
    • C clint1982

      Hello I want to work with files unmanaged. I've been using fstream for file i/o but the problem is that if the file is greater than the maximum value of long I am not able to seek within it since the offset in the seek command doesn't accept values greater than long. Is there any other way I should work with files ? (unmanaged, not using system.dll) Clint

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      The Win32 file APIs will work with 64-bit offsets... CreateFile() SetFilePointer() etc. File Management Functions[^] Mark

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups