Question: Write a code for the following (C or Java) Creation of a new file -Create .txt file Opening and closing an existing file -Open and
Write a code for the following (C or Java) Creation of a new file -Create .txt file Opening and closing an existing file -Open and close the file you created .txt
Reading from file -Read from the file you created .txt
Writing to a file -Write the three digits "123" in the file you created .txt (you should write 123 in the file)
Moving to a specific location in a file i.e End of file. Use the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
