Re: [q-lang-users] Another Simple Question
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2004-10-31 22:20:49
|
Larry Gregg <lg...@ac...> writes: > People: > > I pretty much copied this from the help screen: > > def F = fopen c:\test\mytest.txt "w" ; > fwrites F "Hello, world." ; > fclose F; > > Why does it give me this error in Qpad? > > % C:\Program Files\QPAD\TEST\Filew01.q > Error Filew01.q, line 1: parse error at or near symbol `:' > Error Filew01.q, line 2: parse error at or near symbol `;' > Error Filew01.q, line 3: parse error at or near symbol `;' > > The error message is not too helpful. Should the filename be in double > quotes? Yes, it's a string field. Also I think the \ should be doubled-up, as well. > Are there some simple, complete, examples of file I/O? <http://q-lang.sourceforge.net/qdoc/qdoc_12.html#SEC91> might be a reasonable place to start. HTH, ~Tim -- <http://spodzone.org.uk/> |