On 01/09/2015 01:24 AM, Crusier wrote:
Hi Danny,
Thanks for your suggestion.
The ideal of output of this program is to show if there is any new
number added to the new file.
In other words, the file content of file1 [0001.hk, 0002.hk, 0003.hk,
0004.hk] is comparing with the file content of fi
Hi Danny,
Thanks for your suggestion.
The ideal of output of this program is to show if there is any new
number added to the new file.
In other words, the file content of file1 [0001.hk, 0002.hk, 0003.hk,
0004.hk] is comparing with the file content of file2 [0001.hk,
0002.hk, 0003.hk, 0005.hk].
On 01/09/2015 12:32 AM, Crusier wrote:
Hi,
Please specify Python version for any new question. I'll assume Python 3.4
Thank you for using text message, rather than html. But realize that
attachments are also a problem for many people, as this forum goes
through many gateways, some of whic
> old_file = open('0105-up.txt','r')
> file_contentsA = old_file.read()
> A = file_contentsA.split(",")
> print(A)
> print()
Ah. One other thing. Can you explain what you're intending to do
with this statement?
A = file_contentsA.split(',')
The reason I ask is because neither of your input
On Thu, Jan 8, 2015 at 9:32 PM, Crusier wrote:
> Hi,
>
> I am comparing two files, and the program has problem comparing two
> files. I am currently using Python 3.3 and Window 7.
>
> Attached is my code:
>
> import difflib
>
> old_file = open('0105-up.txt','r')
> file_contentsA = old_file.read()
Hi,
I am comparing two files, and the program has problem comparing two
files. I am currently using Python 3.3 and Window 7.
Attached is my code:
import difflib
old_file = open('0105-up.txt','r')
file_contentsA = old_file.read()
A = file_contentsA.split(",")
print(A)
print()
new_file = open('