Adobe Dreamweaver Forums



Last 10 THreads :         Dragging components (Last Post : hsfrey - Replies : 4 - Views : 5 )           »          Charts: Gap between Vertical Axis and the chart area (Last Post : flexisawesome - Replies : 0 - Views : 1 )           »          Pop up window using AS3 (Last Post : retsnomrev - Replies : 3 - Views : 4 )           »          can a combobox contain two different list seperated byvdivider ? (Last Post : v-Jay - Replies : 2 - Views : 6 )           »          Refreshing xml data in flex (Last Post : PiyushGiri01 - Replies : 2 - Views : 19 )           »          Integrating Captivate with ASP - SQL? (Last Post : bikturisint - Replies : 19 - Views : 131 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Director > Lingo
 
Tags:



Reply
  #1 (permalink)  
Old 11-14-2008, 05:55 PM
instructorTek
 
Posts: n/a
Diggs:
Default save to text file

Hi good day I'm creating a quiz but I would like to know how to save the quiz results i.e from a variable, to a text or excel file. Thanks in advance.


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-14-2008, 06:04 PM
Mike Blaustein
 
Posts: n/a
Diggs:
Default Re: save to text file

There are a number of xtras that will allow you to write text to a text
file. FileIO comes with Director and is free. See the help file for
examples and usage. There are easier ways using other xtras, like
BuddyAPI's baReadIni() and baWriteIni() which allow you to read/write to
an ini file in standard ini format... or propsave or vList to simply
write your list straight to file.
Reply With Quote
  #3 (permalink)  
Old 11-17-2008, 02:54 PM
matthewmaday
 
Posts: n/a
Diggs:
Default Re: save to text file

Below is the exact function that will do what you want.

on EXTERNAL_writeData pPath, pData

-- pPath [STR] pass the path including the name of the file
-- pData [STR] the string that you wish to write
pFile = new(xtra "fileio")
if NOT objectP(pFile) then return -1

createFile(pFile, pPath)
openFile(pFile, pPath, 2)

writeString(pFile, string(pData)) -- write a null-terminated string to the
file

closeFile(pFile)

return 0

end

Reply With Quote


  #4 (permalink)  
Old 11-25-2008, 10:44 PM
Sean Wilson
 
Posts: n/a
Diggs:
Default Re: save to text file

> Below is the exact function that will do what you want.

Except there is no error checking done, and no provision for the case
when the file might already exist
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk