[TINI]SLush and File Writing
"伟大" <zhbnzz-9Onoh4P/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Dear Shawn
code:
//--------------------------------------------------
FileOutputStream ffout;
try
{
ffout= new FileOutputStream("datafile");
ffout.write((new String("12345\r\n")).getBytes());
ffout.write((new String("67890\r\n")).getBytes());
ffOut.flush();
ffout.close();
}catch(IOException e)
{
}
//---------------------------------
in myApp.
If only myApp in flash,“datafile” can found in SRAM.
If new slush(=myApp+slush) in flash,“datafile” cannot found in SRAM?
but other funtions in myApp in newSlush work good!
why?
//------------------
about new slush:
In com.dalsemi.slush.java, I make Changes:
import MyPackage.MyApp;
…
public static void main(String[] args)
{
new Slush();
new MyApp();
}
//-------------------------
Best regards,
zhbnzz
========================================================
“掀起你的盖头来,AOC新妆靓丽健康秀”! http://design.163.com/aocmonitor/index.html
是邮件你收 有病毒我上!VIP邮箱 全面保护! http://vip.163.com
中国最大的免费邮箱在等你 25兆空间4兆附件! http://mail.163.com
点击网易泡泡惊喜无限 全免费手机短信任你发! http://popo.163.com
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini