Created
March 12, 2018 08:05
-
-
Save khan5v/e4c9e9139295d959693a3b619f4d2219 to your computer and use it in GitHub Desktop.
Basic file I/O
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws IOException { | |
BufferedReader br = new BufferedReader(new FileReader("PATH1")); | |
int T = Integer.parseInt(br.readLine()); | |
PrintWriter writer = new PrintWriter("PATH2", "UTF-8"); | |
writer.println("Line"); | |
writer.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment