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.

Ditaruh dimanakah perintah pada shell berikut :type text123.txt untk melihat hasil compilsai code dibawah?

Go down

Ditaruh dimanakah perintah pada shell berikut :type text123.txt untk melihat hasil compilsai code dibawah? Empty Ditaruh dimanakah perintah pada shell berikut :type text123.txt untk melihat hasil compilsai code dibawah?

Post  arip Sun Sep 06, 2009 1:18 am

import java.io.*;

public class TesFile
{
public static void main(String [] args)
{
try {
FileOutputStream berkasKeluaran =
new FileOutputStream("tes123.txt");

// Tulis ke berkas
berkasKeluaran.write((byte) 'A');
berkasKeluaran.write((byte) 'B');
berkasKeluaran.write((byte) 'C');

berkasKeluaran.close();
}
catch (IOException i)
{
}
}
}
soalnya sebelum perintah itu dilakukan hasil compilasinya tidak dapat dilihat.
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