Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: How To Open a text file

  1. #1
    Newbie Newbie
    Join Date
    Feb 2018
    Posts
    2

    How To Open a text file

    Hi Every One!
    I am trying to open a text file from OpenGL but does not open. Kindly help me in this problem. The following are the codes which I am using for opening a text file from OpenGL.

    case 'o':
    glPushMatrix();

    FILE* file = fopen("E:\\Files\aa.txt", "r+")

    glPopMatrix();


  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,789
    OpenGL has absolutely nothing to do with file IO.

    Your question makes no sense. What are you actually trying to do?

  3. #3
    Newbie Newbie
    Join Date
    Feb 2018
    Posts
    2
    I am trying to open a text file or other exe file from OpenGL code and the file opening should be opened by pressing "case button" in OpenGL which I have send the code in the above example.

Posting Permissions

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