Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 2021-06-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ArchanaRawat_1922011/Mohammad Soban/Practical
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

25 changes: 25 additions & 0 deletions File.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import java.io.*;
class File
{
public static void main(String[] args) throws IOException
{
PrintWriter pw = new PrintWriter("file3.txt");
BufferedReader br1= new BufferedReader(new FileReader("file1.txt"));
BufferedReader br2= new BufferedReader(new FileReader("file2.txt"));
String line=br1.readLine();
while (line != null)
{
pw.println(line);
pw.flush();
line=br1.readLine();
}
line=br2.readLine();
while(line != null)
{
pw.println(line);
pw.flush();
line=br.readLine();
}
System.out.println("Merged file1.txt and file2.txt into file3.txt");
}
}
Binary file added TapScanner 06-15-2021-11.25.pdf
Binary file not shown.