파일 입출력 질문이요 ㅠㅠ
Loseless
2023.04.01
txt 파일 읽어와서 여러줄 중에서 특정 줄만 일으려고 하는데요~ 예를 들어 3, 4번째 줄만 읽어오기 이런거요
public class test{
public static void main(String[]args) throws IOException{
String data=null;
BufferedReader in =new BufferedReader(new FileReader(C:\\test\\1.txt));
while((data=in.readLine())!=null){
System.out.println(data);
}}}
여기까지 하면 전체 txt파일 나오구요~
그 다음부터는 잘 못하겠어요~ 고수님들 조언 부탁드립니다. 꾸벅