BCA's Programming

This is blog spot created for B.C.A students with a purpose to give help students in their basic ciruculum activites. One stop solution for all your program errors.I would like to share my knowledge for these students with view to make the studying more interesting and interactive.

  • Home
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

C++ Program .Write a program to create new file and put content in created file.

By Sachin March 01, 2017
#include<stdio.h>
#include<conio.h>
void main()
{
FILE *fp;
char ch;
clrscr();
fp=fopen("d:/fybca/b.txt","a");
if(fp==NULL)
  {
  printf("\n unable to open file");
  }
  while((ch=getchar())!=EOF)
  {
  fputc(ch,fp);
  }
  fclose(fp);
getch();
}
Email ThisBlogThis!Share to XShare to Facebook

Newer Post Older Post Home

Search

100% FREE Demat Account + Amazon Voucher 1000/- In 10 Minutes | Upstox

100% FREE Demat Account + Amazon Voucher 1000/- In 10 Minutes | Upstox
100% FREE Demat Account + Amazon Voucher 1000/- In 10 Minutes | Upstox

Blog Archive

  • ►  2019 (1)
    • ►  February (1)
  • ▼  2017 (64)
    • ▼  March (44)
      • Write a Socket program in java in which client acc...
      • Write a Socket program in java for chatting applic...
      • Create a JSP page to accept a number from an user ...
      • Write a JSP script to check whether given mail ID ...
      • Write a JSP script to accept the details of Studen...
      • Write a JSP script to accept username, store it in...
      • Write a SERVLET program in java to accept details ...
      • Write a SERVLET program that provides information ...
      • Write a SERVLET program which counts how many time...
      • Write a Multithreading program in java to convert ...
      • Write a java program which will display name and p...
      • Write a Multithreading program in java to display ...
      • Write a java program using multithreading to execu...
      • Write a Multithreading program in java using Runna...
      • Write a java program to simulate traffic signal us...
      • Write a menu driven java program for the following
      • Write a java program to accept the details of coll...
      • Write a JDBC application using swing for the follo...
      • Write a JDBC program in java to display details of...
      • Write a JDBC program to delete the records of empl...
      • Write a JDBC program to accept the details of cust...
      • Don't Quit Inspiring Poem..
      • Something Very useful information
      • C++ Program.Write a program to display area of squ...
      • C++ Program. Write a program to display area of tr...
      • C++ Program .Write a program convert fharenhite to...
      • C++ Program .Write a program to display simple int...
      • C++ Program .Write a program to input an integer n...
      • C++ Program .Write a program to print factorial us...
      • C++ Program .Write a program to print following pa...
      • C++ Program .Write a program to nested structure
      • C++ Program .Write a program to open file for reading
      • C++ Program .Write a program to append the content...
      • C++ Program .Write a program to create new file an...
      • C++ Program .Write a program to accept n book deta...
      • C++ Program Write a ‘C’ Program to count the numbe...
      • C++Write menu driven program to convert decimal nu...
      • C++ program to check whether given number is Palin...
      • Write a C program to accept three integers as com...
      • Write a program, which accepts a number n and disp...
      • Write a menu driven program in C to create a stru...
      • Write a C program to accept n different numbers a...
      • Write a C program to calculate sum of digits till...
      • Write a C program to swap two numbers using bitwis...
    • ►  February (20)
  • ►  2016 (22)
    • ►  April (12)
    • ►  March (10)
  • ►  2015 (15)
    • ►  December (1)
    • ►  September (13)
    • ►  March (1)
  • ►  2014 (84)
    • ►  September (5)
    • ►  July (2)
    • ►  May (15)
    • ►  March (5)
    • ►  February (11)
    • ►  January (46)
  • ►  2013 (3)
    • ►  November (3)

Popular Posts

  • Create a form to accept employee details like name, address and mobile number. Once the employee information is accepted, then accept LIC information like policy_no, name, premium. Display employee details and LIC details on next form.(use COOKIE)
    Emp.html <html> <body> <form method="POST" action="Lic.php"> Enter EMP No : <input ty...
  • Write a java program to accept n name of cities & Sort them descending order.
    class SortCity {             public static void main(String arg[])             {                         String name[]=new Stri...
  • Write a program, which accepts a number n and displays each digit in words. Example: 6702 Output = Six-Seven-Zero-Two.
    #include<stdio.h> #include<conio.h> main() { int num,rem=0,digit; clrscr(); printf("Enter number="...
  • Program to accept Book details of ‘n’ books as book_title, author, publisher and cost. Assign the accession number to each book in increasing order Display these details as
    Program to accept Book details of ‘n’ books as book_title, author,   publisher and cost. Assign the accession number to each book in incre...
  • Define an interface which has methods area(), volume(). Define constant PI. Create a class cylinder which implements this interface and calculate area and volume. (Use define())
    <?php                         interface Cyl         {                         function area();                         functi...

Categories

  • BCA Sem VI Advance Java Slips Solution
  • Ebooks
  • FYBCA ( Sem–II) Assignment No.2 Decision making and looping.(solved assignment)
  • FYBCA ( Sem–II) Assignment No.3 using function.(solved assignment)
  • FYBCA ( Sem–II) Assignment No.4 Array program.(solved assignment)
  • INFORMATION ABOUT TALLY.ERP 9
  • RDBMS Assignment
  • RDBMS ASSIGNMENT
  • TYBCA (Sem IV) Java Programs
  • TYBCA (Sem VI) Adv Java Programs
  • TYBCA PHP Assignment

Copyright © BCA's Programming
Back to Top