@Test public void test() throws Exception{ //创建输入数据流对象 InputStream In=new FileInputStream("HellWord.txt"); try { //System.out.print((ch...
分类:
编程语言 时间:
2014-06-18 21:39:04
阅读次数:
226
命令如下:antant install-mavenant jar packageE:\download\spring-framework-3.1.3.RELEASE\build-spring-framework\readme.txtreadme.txt文档很重要,里面有非常重要的命令,如果导入ecl...
分类:
编程语言 时间:
2014-06-18 21:37:52
阅读次数:
203
@Test public void fileTest() { //创建File 对象 File file=new File("hell.txt"); //获取文件名 System.out.println(file.getName()); //访问文件的绝对路径 System.out.p...
分类:
编程语言 时间:
2014-06-18 21:22:15
阅读次数:
296
//输出流 @Test public void testOutStream() throws Exception{ OutputStream out =new FileOutputStream("abc.txt"); String content="hello word/nwww.baidu.c.....
分类:
编程语言 时间:
2014-06-18 21:16:47
阅读次数:
280
public class Weather { static readonly string FilePath = System.Environment.CurrentDirectory + @"\Area.txt"; public static Models.Are...
分类:
Web程序 时间:
2014-06-18 19:31:48
阅读次数:
140
Christopher KohlhoffCopyright © 2003-2012 Christopher M. Kohlhoff以Boost1.0的软件授权进行发布(见附带的LICENSE_1_0.txt文件或从http://www.boost.org/LICENSE_1_0.txt)Boost....
分类:
其他好文 时间:
2014-06-18 19:27:19
阅读次数:
279
//缓存数据流 @Test public void testBufferReaderAndWriter() throws IOException{ //创建文件字符输入流 Reader in=new FileReader("abc.txt"); BufferedReader br=new Bu...
分类:
编程语言 时间:
2014-06-18 19:22:40
阅读次数:
300
C++对文件处理没有shell等脚本语言方便,但也不是无计可施。#include #include #include #include using namespace std;int main(){ ifstream in("a.txt"); ofstream out("b.txt"); if(!i...
分类:
编程语言 时间:
2014-06-18 18:27:39
阅读次数:
231
前提现在一个分区下建立bb.txt文件。 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6...
分类:
其他好文 时间:
2014-06-17 00:00:48
阅读次数:
228
四、测试Hadoop一个简单的求每年温度最大值的程序。1、准备两个文本测试数据准备两个名为data1.txt及data2.txt的文件,用于做为计算的输入数据,将其放于/home/fenglibin/java/data目录下:data1.txtdata2.txt1999 101999 201999 252000 212000 222000 182000 402001 452001 652002 9...
分类:
其他好文 时间:
2014-06-16 20:52:57
阅读次数:
443