Fatihul Ulum Community of Knowledge
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Maaf ditarik kembali ya....he he he soalnya kalu yang ini insyaallah bisa...

Go down

Maaf ditarik kembali ya....he he he soalnya kalu yang ini insyaallah bisa... Empty Maaf ditarik kembali ya....he he he soalnya kalu yang ini insyaallah bisa...

Post  arip Sun Sep 06, 2009 2:53 pm

import java.io.*;

public class GabungFile

public static void main(String [] args)
{
[color=red]throws IOException [/color]
{
FileInputStream berkas1 =
new FileInputStream("latx.txt");

FileInputStream berkas2 =
new FileInputStream("latx.txt");

SequenceInputStream masukan =
new SequenceInputStream(berkas2, berkas1);

// Tampilkan ke layar
int kar;
while ((kar = masukan.read()) != -1);
System.out.print((char) kar);

masukan.close();
berkas1.close();
berkas2.close();

}
}
arip
arip
Pejuang
Pejuang

Jumlah posting : 36
Registration date : 05.03.09

Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik