answersLogoWhite

0

A program in c to copy text file?

Updated: 12/22/2022
User Avatar

Wiki User

12y ago

Best Answer

File Operations in C are accomplished by the use of pointers.Pointers are use to point to a particular memory location.File are read and written by using file pointers.The Keyword FILE is used to declare a file pointer.

The Complete Program for writing text to a file and saving it and copying it to a new location is given at http://c-madeeasy.blogspot.com/2011/07/program-in-c-to-write-data-to-file-and.html

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A program in c to copy text file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you copy c program to msword?

If you want to copy C source code to a new file in MS Word, use the following steps:Open the C program in Notepad if it's not already open.Select all text (usually CTRL+A works fine).Copy that text to the clipboard (CTRL+C).Open MS Word (or Wordpad).CTRL+V to paste the C source code.Save if desired.If the C source code is in a file, and you have Windows Explorer open with that file showing, you can open MS Word, and then drag the file from Explorer to MS Word, which will open that file.


How do you paste c program from text to c editor?

Copy and paste is the most common method.


How can you copy in mac?

To copy a piece of text: select the text and press the Command (cmd) and C keys, or right click on the text and select Copy from the menu. To copy a file hold down the Alt key while you drag the file to a new location, or right click on the file and select Duplicate from the menu.


Write a C program to extract a word from a delimiter text file?

not yet found


How can write a c program to store students record in a file?

Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo,


Your batch is not copying the file to the mapped drives?

If you are trying to copy files from a location or to a location whose name has spaces, you will need to put the " " around the location for it to work. For example: copy C:\Users\Noah\Desktop\File.txt "C:\Program Files\Folder\File.txt" or copy "C:\Users\Noah\My Music\Music.mp3" C:\Program Files\Folder\Music.mp3 OR copy "C:\Users\Noah\My Pictures\Picture.jpg" "C:\Program Files\Folder\Picture.jpg


How do you copy the turbo c screen in Microsoft Word?

better copy the needed program from your word document and paste it in a notepad and save it with " .c " extension ,now paste this file with ".c" extension to "bin" folder then normally open the turboc file->open and click on the corresponding name with ".c" extension


How do you open include file in c?

1. You (human) want to read an include file: use a text editor. 2. Your program wants to read a file: use open/fopen.


What is the ctrl c shortcut?

Ctrl+C copys the selected text, to paste press Ctrl+V.


How do you write a c program that counts number of blanks in a text file using standard io?

int count_whitespace (FILE* input) { int c, count=0; while (( c = getc(input) ) != EOF ) if ((char) c==' ') ++count; return count; }


What are source code in programming?

You write a computer program with words and symbols that are understandable to human beings. This is the edit part of the development cycle. You type the program directly into a window on the screen and save the resulting text as a separate file. This is often referred to as the source file (you can read it with the TYPE command in DOS or the cat command in unix). The custom is that the text of a C program is stored in a f ile with the extension .c for C programming language


How do you concatinate two files in c plus plus?

Copy the first file then append the second file to the copy.