import java.io.*;
public class Dataio {
public static void main(String args[]) throws IOException {
DataInputStream dataIS = new DataInputStream(new FileInputStream("stdinfo.txt"));
DataOutputStream dataOS = new DataOutputStream(new FileOutputStream("newstdinfo.txt"));
// manipulate the student information from files
String str;
while ((str = dataIS.readLine()) != null) {
String upper = str.toUpperCase();
System.out.println(upper);
dataOS.writeBytes(upper + " ,");
}
dataIS.close();
dataOS.close();
}
}
Find all the practical at one place of Gujarat Technological University(GTU) With Solutions.
Sunday, June 30, 2019
Refine the student manager program to manipulate the student information from files by using the DataInputStream and DataOutputStream. Assume suitable data
Subscribe to:
Post Comments (Atom)
-
A country has a capital city A dining philosopher uses a fork A file is an ordinary file or a directory file Files cont...
-
import java.io.*; public class Dataio { public static void main(String args[]) throws IOException { DataInputStr...
No comments:
Post a Comment