[Tutor] Writing to a file on another server
Thu, 6 Dec 2001 06:11:25 -0500
> Subject: Writing to a file on another server
> I'm attempting to write to a file but the following code doesn't seem
> work. I'm not sure where the file is going if anywhere. I'm working
> my machine and developing on a remote server which is where I'm
> the application that would create this file (the .py file is also
> on this remote server). I'd like the file to write to another server
> ideally. Is this possible?
> The following is my code... I tried using os.chdir but it didn't seem
> work. I can't get it to write anywhere it seems
> By default without specifying a path where should the file go?
> div, officersdept):
> import os
> while i <= itot:
> fh.write('1 3 COL 1 = FORM, COL 3 = SPOOL CODE\n')
> while j <= jtot:
> fh.write(officersbank[j] + ' ' + officersno[j] + ' ' +
> officersdiv[j] + ' ' + officersdept[j] + '\n')
> return 1
> Any help would be much appreciated. I've been working on it for days
> am getting frustrated!!
I am working on a Windows NT machine. The remote server is also Windows
NT. The server I want to write to is a Novell server.