Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.Scanner;
- public class ExamQ {
- public static void main(String[] args) throws IOException {
- FileInputStream vowel = new FileInputStream("Vowel.txt");
- FileOutputStream constant = new FileOutputStream("Cons.txt");
- int temp = vowel.read();
- while(temp!=-1){
- constant.write(temp);
- temp = vowel.read();
- }
- vowel.close();
- constant.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement