Results 1 to 2 of 2

Thread: Trouble with opening a file using "openfile"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    openfile is a stock function that only reads in the scriptdata directory.
    You should look into the fopen, fread and fclose functions.
    The documentation is missing these functions.

    https://github.com/voron00/libcod/bl...utils.cpp#L588
    https://en.cppreference.com/w/cpp/io/c/fopen
    Last edited by Mitch; 23rd July 2023 at 20:12.

  2. The Following User Says Thank You to Mitch For This Useful Post:

    Borch (23rd July 2023)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •