CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Scotland,UK
    Posts
    9

    How to specify location of a folder when opening a file.....

    How do you specify the location of a folder when opening a file using "fopen"?

    Cheers for any help

    Stu


  2. #2
    Guest

    Re: How to specify location of a folder when opening a file.....

    You just give the complete path to the file

    FILE *fichero = fopen("c:\\kitai\\rulez\\done.txt", "rw");
    note the \\ because on ANSI C the \ is for special characters,
    \\ means \ in a string

    Kitai, asking what the hell is his password
    [email protected]


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

Featured