关于java的文件写入的两个问题~~不去学海深仇了
登录 | 论坛导航 -> 华新鲜事 -> 社会百科 | 本帖共有 19 楼,当前显示第 15 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:Cdarkrider (等级:2 - 初出茅庐,发帖:61) 发表:2003-05-26 02:03:27  15楼  评分: 
~~~难道是这样? String account=account+".txt"; myFile = new File(newaccount); 对吗?
ok... see this

String account="your directoty/your filename without .txt";
account=account+".txt";
myFile = new File(newaccount);

and can you really "myfile=new File()"? i dont think so.
unless you decleared your own class.

note: pascal style is not working in Java

Put your OWN COOL signature here!
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 19 楼,当前显示第 15 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码