ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Active_prgs/Low_steve.py
Revision: 8
Committed: Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges
Content type: text/x-python
File size: 331 byte(s)
Log Message:
Initial Import

File Contents

# User Rev Content
1 ninoborges 8 ## low level copier for steve
2    
3     import os, sys
4    
5     blksize = 1024 * 8
6    
7     FileFrom = open('d:\\through4-02.pst','rb')
8     FileTo = open('c:\\through4-02.pst','wb')
9     while 1:
10     try:
11     BytesFrom = FileFrom.read(blksize)
12     except:
13     print "error found in file"
14     if not BytesFrom: break
15     FileTo.write(BytesFrom)