1.File Copy
check this link
http://geekclues.blogspot.in/p/file-handling-hands-on-session-vii.html
Write a program to copy from one file to another.
Input and Output Format:
Refer sample input and output for formatting specifications.
All text in bold corresponds to input and the rest corresponds to output.
Sample Input and Output:
Enter the input file name
testInput.txt
Enter the output file name
testOutput.txt
code:
check this link
http://geekclues.blogspot.in/p/file-handling-hands-on-session-vii.html
2.File : Count Character
Write a program to count the number of times a character appears in the File. (Case insensitive... 'a' and 'A' are considered to be the same)
Input and Output Format:
Refer sample input and output for formatting specifications.
All text in bold corresponds to input and the rest corresponds to output.
Sample Input and Output:
Enter the file name
test.txt
Enter the character to be counted
r
File 'test.txt' has 99 instances of letter 'r'.
code: check this link.
No comments:
Post a Comment