File Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanketbarot
    New Member
    • Sep 2006
    • 30

    File Problem

    Hello Friends,

    I am using Turbo C++ compiler. and I when i am trying to make a new file or opening a file. It always take the F:\TC\BIN path.

    So my question is how can I open a file from any where in the disk. or how can i store the file any where in the disk.
  • D_C
    Contributor
    • Jun 2006
    • 293

    #2
    I haven't tested this, but I imagine it would be the same as addressing through the command line. You can do relative, or absolute addressing.

    Absolute address would be like "C:\Docume~1\Us er\Desktop\test .txt".
    Relative address would be like "../../../../Docume~1\User\D esktop\test.txt "
    Where ~1 is for 8 letter names (DOS convention) and .. means go up a directory.

    Comment

    Working...