Exporting data to a text file on our server

SOLVED

I am trying to export data from sage to a text file on our server. So far, I got this in my code: 

---------------------------------------------------------------------------------------------------------

If clalev([F:SOH])=0 Local File SORDER [SOH] : Endif

Local Char YSOHNUM(100)
Local Char YBPCNUM(100)

Filter[F:SOH] Where [F:SOH]ORDSTA=1
For[F:SOH]

YSOHNUM= [F:SOH]SOHNUM
YBPCNUM= [F:SOH]BPCNAM

Next

Openo "C:\Users\Public\TestFile.txt",-1

adxifs=';'
adxirs = chr$(13) + chr$(10)
Wrseq YSOHNUM, YBPCNUM

---------------------------------------------------------------------------------------------------------------------

When I run this code, I get the following error: 

I can't figure out why this error is appearing. Any help would be appreciated. 

Thanks!