app in TINIm400 flash
zhbnzz <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Kris Ardis
My application code in slush can reads data from file in SRAM, but cannot writes data to file in SRAM. Why?
//======================1===================================
boolean ret=false;
DSFile ff = new DSFile("datafile");
try{
PrintStream ffOut = new PrintStream(new BufferedOutputStream(new FileOutputStream(ff)));
ffOut.println("12345");
ffOut.println("67890");
ffOut.close();
ff.setOtherPermissions(0);
}catch(IOException e)
{
}
//=========================================
¡°datafile¡± not found in SRAM. Why?
//====================2====================
FileOutputStream ffout;
try
{
ffout= new FileOutputStream("datafile");
ffout.write((new String("12345\r\n")).getBytes());
ffout.write((new String("67890\r\n")).getBytes());
ffout.close();
}catch(IOException e)
{
}
//=========================================
"datafile¡± not found in SRAM. Why?
Zhbnzz
3.30.2004
______________________________________
×¢²áÐÂÀË9Õ×Ãâ·ÑÓÊÏ䣨 http://mail.sina.com.cn/chooseMode.html £©
===================================================================
»ÝÆÕ´ó½±Á¬»·ËÍ£¬¸ßЧ°ì¹«ÀÖȤ¶à! (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh1.html)
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini