<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Writing to an output file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Here is what SHOULD be a simple process. I'm writing to an array, and sending that to an output file. Here are the files and the results:<BR>
<BR>
[erin@tp-login2 swift1]$ cat iter2.swift<BR>
type file; <BR>
<BR>
app initialCondition() { <BR>
int x = 10;<BR>
} <BR>
<BR>
int step[0]=initialCondition();<BR>
<BR>
file o <"output.txt">; <BR>
<BR>
o=step[0];<BR>
[erin@tp-login2 swift1]$ swift -tc.file tc.data iter2.swift<BR>
Could not compile SwiftScript source: line 4:13: unexpected token: x<BR>
[erin@tp-login2 swift1]$<BR>
<BR>
The file is in /home/erin/swift1/iter2.swift.<BR>
<BR>
Thanks,<BR>
Erin<BR>
<BR>
<BR>
<BR>
Erin M. Hodgess, PhD<BR>
Associate Professor<BR>
Department of Computer and Mathematical Sciences<BR>
University of Houston - Downtown<BR>
mailto: hodgesse@uhd.edu<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>