| Reply | « Previous Thread | Next Thread » |
|
Hello all
I'm currently working on a program that will read in the byte of a file and hash it. The program will write the hash values back to the same area or memory the file is stored. It is supposed to be a wiping program. Some things that I would like to ask is : - any functions/methods available to read the byte of a file? - is it possible to use the OS read/write function for my program? All help are greatly appreciated. |
| zschneiderz |
| View Public Profile |
| Find all posts by zschneiderz |
|
use read object
same example #create and write f=open('e:\\a.txt','w') f.write('hello world') f.close() f=open('e:\\a.txt','r') a=f.read(5)#reading 5 bytes print a >>>hello f.close() www.python-s60.com Turkish python |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
Thanks for posting the example! Although, next time please use the code tag for posting codes ![]() BR, Rafael. |
|
I writing reply phone
thank you for warning www.python-s60.com Turkish python |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
you can also have a look at this link for more details and there are lots of examples at the wiki about file manipulations try to have a good search. Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
thanks for the advice and the link
![]() Another question i would like to ask is that if there is more crypto methods available on python. Cos i noticed there only 3 types available (MD5 and SHA). Possible to find standards like AES or DES? |
| zschneiderz |
| View Public Profile |
| Find all posts by zschneiderz |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Error with makesis.exe and creating the .pkg file | gramya87 | Symbian Tools & SDKs | 7 | 2007-10-10 14:53 |
| [newbie here] Link error | xitpu | General Symbian C++ | 3 | 2007-01-24 17:53 |
| GoogleIt | deepika.mangla | General Symbian C++ | 4 | 2007-01-08 02:07 |
| Any SMS advice for a university project | ColinM | General Messaging | 7 | 2004-01-07 20:52 |
| Project help and advice. | anujsaboo | Mobile Java General | 1 | 2003-10-08 14:04 |