목차
없음
본문내용
import java.io.*;
class FileCopy
{
final static int EOF = -1;
public static void main(String args[]) throws IOException
{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.print("파일복사①,파일편집②,파일보기③ >>> ");
// 1~3까지 원하는 작업을 선택합니다
String x = in.readLine();
int a = Integer.parseInt(x); // String으로 입력받은것을 int형으로 바꿉니다.
switch (a)
{
case1: // case 1은 파일 복사 부분 입니다.
{
System.out.print("원본 파일이름은? >> ");
String in1 = in.readLine(); // 원본파일 이름을 입력받고
System.out.print("복사본 파일이름은? >> ");
참고 자료
없음