Created
June 8, 2015 13:33
-
-
Save shigemk2/6390ecb9a7409fedb7e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import jp.ossc.nimbus.io.CSVWriter; | |
class Nimbus { | |
public static void main(String[] args) { | |
try { | |
FileOutputStream fos = new FileOutputStream("sample.csv"); | |
OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8"); | |
CSVWriter writer = new CSVWriter(osw); | |
String[] csv = new String[2]; | |
csv[0] = "hoge"; | |
csv[1] = "100"; | |
writer.writeCSV(csv); | |
writer.close(); | |
} catch (IOException e) { | |
} finally { | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hoge | 100 |
---|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment