mzeadabadi@gmail.com
جمعه 01 آبان 1388, 08:35 صبح
دوستان سلام
چند وقتیه دوستان همیشگی کمتر دیده میشن
من نمیدونم این کد کجاش خرابه که نمیتونه یک فولدر بسازه؟ یه نگاه بندازید.
public void readUnicodeFile()
{
//FileConnection fc =null;
InputStream is = null;
try
{
String dir = "file:///c:/other";
FileConnection fc = (FileConnection) Connector.open(dir ,Connector.READ_WRITE);
File file1=null;
fc.setWritable(true);
if(fc.canRead())form.append("read");
if(fc.canWrite())form.append("Write");
if(fc.isDirectory()){
form.append("folder");
File f=null;
fc.mkdir();
}
else{
fc.create();
}
}
catch (Exception ex)
{
ex.printStackTrace();
form.append("Cann't open sorry");
}
}
چند وقتیه دوستان همیشگی کمتر دیده میشن
من نمیدونم این کد کجاش خرابه که نمیتونه یک فولدر بسازه؟ یه نگاه بندازید.
public void readUnicodeFile()
{
//FileConnection fc =null;
InputStream is = null;
try
{
String dir = "file:///c:/other";
FileConnection fc = (FileConnection) Connector.open(dir ,Connector.READ_WRITE);
File file1=null;
fc.setWritable(true);
if(fc.canRead())form.append("read");
if(fc.canWrite())form.append("Write");
if(fc.isDirectory()){
form.append("folder");
File f=null;
fc.mkdir();
}
else{
fc.create();
}
}
catch (Exception ex)
{
ex.printStackTrace();
form.append("Cann't open sorry");
}
}