Results 1 to 16 of 16

Thread: "Debug Assertion Failed" with fseek!!!

Threaded View

  1. #1

    Thread Starter
    Lively Member dubae524's Avatar
    Join Date
    Jun 2001
    Location
    Currently on this Super Star Destroyer being telekinetically strangled to death by Darth Vader
    Posts
    78

    "Debug Assertion Failed" with fseek!!!

    #include <fstream.h>
    #include <stdlib.h>
    #include <iostream.h>
    #include <stdio.h>

    void main(void) {
    FILE *testafile;
    char myfilechar;
    testafile = fopen("D:\testfile.fil", "r");
    myfilechar = (char) fseek(testafile, 4, 0);
    fclose(testafile);
    printf("%c", myfilechar);
    }

    When I was using fseek, an assertion error came up. Can someone help me? (I was using MSVC++6 Std, problems were fseek.c, line 146, and str != NULL.)

    This is a strange little problem, so I would like some help.
    Last edited by dubae524; May 17th, 2002 at 06:19 PM.
    - Justin Patrick Butler

    Comme je trouve. "As I find."
    - Butler family quote

    Beneficia sumptos procul superant. "The benefits far exceed the costs."
    - Myself

Posting Permissions

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



Click Here to Expand Forum to Full Width