[Swift-user] Writing to an output file

Hodgess, Erin HodgessE at uhd.edu
Thu Jun 4 12:36:48 CDT 2009


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:

[erin at tp-login2 swift1]$ cat iter2.swift
type file;  
  
app initialCondition() {  
	int x = 10;
}  

     int step[0]=initialCondition();

file o <"output.txt">;  

	o=step[0];
[erin at tp-login2 swift1]$ swift -tc.file tc.data iter2.swift
Could not compile SwiftScript source: line 4:13: unexpected token: x
[erin at tp-login2 swift1]$ 

The file is in /home/erin/swift1/iter2.swift.

Thanks,
Erin



Erin M. Hodgess, PhD
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgesse at uhd.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20090604/9388c9fc/attachment.html>


More information about the Swift-user mailing list