[Gambas-user] my stream is not working
lozza1978
piresl at ...626...
Sun Jan 13 15:22:56 CET 2008
HI All,
I just need a quick bit of help as to where im going wrong here.
EXEC ["dvdauthor", "-o", Textbox3.Text &/ "dvd", "-x", Textbox3.Text &/
"dvd.xml"] FOR READ AS "Chaps"
PUBLIC SUB Chaps_Read()
DIM hFile AS File
DIM sLine AS String
DIM aString AS String[]
DIM filsize AS Integer
READ #LAST, sLine, Lof(LAST)
sOutput &= sLine
hFile = OPEN "/home/don/Desktop/11percent" FOR CREATE
WRITE #hFile, sOutput, Len(sOutput)
CLOSE #hFile
PUBLIC SUB Chaps_Quit()
PRINT "process completed"
END
The test file does not get created, and when the process is complete, the
'process completed' does not print, (the the exec command is still running
in the background though, while process is running)
but when I do
EXEC ["ls", "-la", "/tmp"] FOR READ AS "Chaps"
this works and prints output to file.
hmm so close and yet so far,
--
View this message in context: http://www.nabble.com/my-stream-is-not-working-tp14785370p14785370.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list