上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 75 下一页
摘要: file()与file_get_contents()一样,都是读取某文件的内容。file_get_contents()输出的是整个文件(不能读取TXT里的首行缩进和换行符)。 file() 函数把整个文件读入一个数组中。与 file_get_contents() 类似,不同的是 file() 将文件 阅读全文
posted @ 2017-07-18 13:56 午火39 阅读(1112) 评论(0) 推荐(0)
摘要: // TODO 自动生成的方法存根 //路径文件 File file = new File("F:"+File.separator+"work"+File.separator+"work"+File.separator+"write.txt"); //将文件引入到输出流中 PrintStream out = new PrintStream(new FileOutputStrea... 阅读全文
posted @ 2017-07-12 22:31 午火39 阅读(286) 评论(0) 推荐(0)
摘要: db: 这是给出来的案例,在实际代码环境,用的是默认生成的模板文件。 修改配置文件 在model中使用时, 阅读全文
posted @ 2017-07-10 14:10 午火39 阅读(682) 评论(0) 推荐(0)
摘要: phalcon:官方多模块支models层,mode数据库配置 按: backend分后台, frondend 分前台 每个多模块下面都有一个 Module.php文件, 1. frondend/models下面的mode文件,不需要写namespace命名空间,值机继承:\Phalcon\Mvc\ 阅读全文
posted @ 2017-07-10 14:08 午火39 阅读(503) 评论(0) 推荐(0)
摘要: class Send implements Runnable{ PipedOutputStream pos = null; public Send() { this.pos = new PipedOutputStream(); } public PipedOutputStream getPipedOutputStream() { return this.pos; ... 阅读全文
posted @ 2017-07-09 21:46 午火39 阅读(259) 评论(0) 推荐(0)
摘要: //用内存,将小写字母替换成大写字母 String str = "helloworld,goodmorning"; ByteArrayOutputStream bos = null; ByteArrayInputStream bis = null; bis = new ByteArrayInputStream(str.getBytes()); ... 阅读全文
posted @ 2017-07-09 18:33 午火39 阅读(1456) 评论(0) 推荐(0)
摘要: java i/o 复制文件 阅读全文
posted @ 2017-07-05 08:15 午火39 阅读(415) 评论(0) 推荐(0)
摘要: 字符流的操作: 字节流的操作,是直接映射文件的:file->文件 字符流的操作是需要存在缓存区的:file->缓冲区->文件 (中文处理,一般用字符流) 阅读全文
posted @ 2017-07-03 08:17 午火39 阅读(451) 评论(0) 推荐(0)
摘要: 1、在java中stream代表一种数据流(源),javaio的底层数据元,---(想像成水龙头)2、任何有能力产生数据流(源)的javaio对象就可以看作是一个InputStream对象既然它能产生出数据,我们就可以将数据取出,java对封装的通用方法就read()方法了--(出水龙头)3、任何有 阅读全文
posted @ 2017-07-02 22:55 午火39 阅读(3719) 评论(0) 推荐(0)
摘要: RandomAccessFile是用来访问那些保存数据记录的文件的,你就可以用seek( )方法来访问记录,并进行读写了。这些记录的大小不必相同;但是其大小和位置必须是可知的。但是该类仅限于操作文件。RandomAccessFile不属于InputStream和OutputStream类系的。 阅读全文
posted @ 2017-07-02 22:31 午火39 阅读(643) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 75 下一页