DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links