hi...
i'm having difficulties handling textfiles...
there's a function to read each line of a textfile, and then append all lines to another textfile...
that's the code:
basically everything's working fine... the second file looks (in my windows notepad) exactly as the file from where the data is copied from.Code:file_var = open(base_dir+filename) data = file_var.readlines() file_var.close() db = file(other_dir+second_filename,'a') db.writelines(data) db.close()
but:
there's another function in the code, which takes values from the textfile and calculates something. and even though the content looks exactly the same, the function doesn't calculate the values from the second file.
if i replace the second file with the original file, everything is working fine.
any ideas why the second file doesn't work?
btw:
if i execute the same script on my pc, the second file is working. so i really don't know why it's not working on my cell-phone...


Reply With Quote


