| Reply | « Previous Thread | Next Thread » |
|
Hi All
I'm trying to read a text file and write the content of that text file into another text file. Code is as below String oldName= "file:///C:/data/text1.txt"; String newName= "file:///C:/data/text2.txt"; FileConnection fci = (FileConnection)Connector.open(oldName); FileConnection fco = (FileConnection)Connector.open(newName); Whenever i want to run it through neatbeans6.0 it shows that root isn't accessible. BR Javed
Last edited by Aliencse : 2008-04-02 at 14:17.
|
|
There will be folder named named root1 in the follwing path.
C:\WTK22\appdb\DefaultColorPhone\filesystem\ put your file and directory in it. And crate string as followign. "file///root1/dir1/dir2/file1.txt"
Last edited by honest_success : 2008-04-01 at 22:15.
Reason: spelling mistake
|
| honest_success |
| View Public Profile |
| Find all posts by honest_success |
|
Thanks for your reply. No i dont it for wtk only. I did it before through wtk2.5.
But I want to read and write file through neatbean 6.0 editor which includes wtk 2.5.2. Now tell me through neatbean how i can read and write file? what will be exact path? Thanks in advance Javed |
|
Hi Honest_Success
If i want to read a file from a path , the path isn't like as C:\WTK\appdb\DefaultColorPhone\filesystem\root1 and then want to write the content of that file to a file as my expected path, is it possible? BR Javed |
|
Hi ,
I dont understand what you are telling but see if you are using WTK2.5 means you are developing application which runs in a mobile and in mobiles you dont find a path like C:\.... . If you want to read from simple system or server use http or stream connection and connect to the system to read or write . But make sure that the system must have IP address with which you can connect. BR |
|
Hi Susrap
Yap I'm using wtk2.5, no right now I'm not testing it on mobile, now I'm testing read & write in pc's. Read & write file can be done in pc's root1 folder where wtk is installed like C:\WTK\appdb\DefaultColorPhone\filesystem\root1. But I'm trying to read & write a file as my expected folder or path not from root1 folder. Is it possible??? BR Javed |
|
Quote:
BR. |
|
Hi Susrap
I think you couldn't identify mine problem. No i don't wanna acces any remote devices so server or other remote devices...........needn't to mention here. I told you that file read and write work fine in the following directory C:\WTK\appdb\DefaultColorPhone\filesystem\root1. But I'm trying to read & write file as my expected directory or path not from C:\WTK\appdb\DefaultColorPhone\filesystem\root1. Is it possible??? Regards Javed |
|
Quote:
BR. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| data file read and write | toinks | General Symbian C++ | 28 | 2006-11-07 09:27 |
| Read and Write a custom settings file.... | skhimsara | General Symbian C++ | 2 | 2006-04-25 07:01 |
| What is the error in my code here? Unable to Save document to file | yuva69 | General Symbian C++ | 1 | 2005-05-26 15:22 |
| nokia 7210 modem via IR doesn't work ! | oussamaaiadi | PC Suite API and PC Connectivity SDK | 1 | 2003-03-06 11:46 |
| Looking for help from member......pl...help me in my source code. | yuva69 | General Symbian C++ | 0 | 2002-06-10 13:24 |