how to save file in specied location


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: how to save file in specied location

  1. #1
    Join Date
    Apr 2005
    Posts
    15

    how to save file in specied location

    hi all,

    I am dealing with an c program by using Fopen() function...
    so pls help me any one how can i save file in my specefied location.
    How can i declare path for saving file..

    regards,
    Naveen Yerramaneni.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    fp = fopen("c:\some folder\some file.extension");

  3. #3
    Join Date
    Nov 2003
    Posts
    4,118
    Quote Originally Posted by jonnin
    fp = fopen("c:\some folder\some file.extension");
    A word of caution:

    In Windows this should be:
    fopen("c:\\some folder\\some file.extension")
    Danny Kalev

  4. #4
    Join Date
    Dec 2003
    Posts
    3,366
    Details =( they always get me

  5. #5
    Join Date
    Apr 2005
    Posts
    15

    thanks

    hello friend,

    I am very thankfull for ur valuable advice....

    if i am caling my c.EXE file from java program....and if i had defined any path in c program, storing file in bin directory...so now i can implement ur instrictions inc file...so that file fille be saved in specefied dir of C prog.

    one more question is if i am coding C program in another system and calling C.Exe from Java prog from another system. if first system does'n have path of my required in Java, then how can i manage that file in Java program?


    regards,
    Naveen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center