OutputStream
2015-12-05 23:16
651 查看
import java.io.*; public class OutputStr { public static void main(String[] args) throws Exception { File file = new File("D:\\temp","write.txt"); OutputStream os = new FileOutputStream(file); // os.write(89); //参数是 int类型 String str = "haahahahah"; os.write(str.getBytes()); os.flush();//清空缓存 os.close(); } }
相关文章推荐
- xxOutputStream xxInputStream
- CTP训练营之牛刀小试
- 荒芜的周六-PHP之面向对象(三)
- 交换机的Vlan /TRUNK/VTP配置
- 简单PHP会话(session)说明
- PHP面向对象 1.7 常见的魔术方法及应用
- ThinkPHP框架七数据的修改和删除
- php基础语法学习笔记
- php curl 入门
- PHP排列组合算法
- 修改phpmyadmin密码后,weiphp后台一直无法登录,post not found
- 国内NTP服务器整理
- PHP函数:fsockopen简介
- [php] php - json_encode 函数
- php 链接副本集
- PHP php中的@作用
- PHP面向对象 1.6 常见的关键字
- PHP 5.3向更高版本迁移之新特性
- php版本从5.3升级到5.5以后,老版的phpmyadmin没法使用的解决办法
- thinkphp实现多个子查询语句