ating the file and then writing
to the file again. What's easier? Running a repeat loop, or
doing complex file management? The repeat loop won't fail, whereas
the File IO might act up at any time. Best to minimize the work
the computer has to do (in this case a 90MHz Pentium I). I mi
Hi Kerry
>I got a little lost in the part about the 4
> and the 3 and 0 and the 4th 0 of the third minor seventh.
>
> Cordially,
>
> Kerry Thompson
That's the problem with you exBostonians.. you lose a little
hair and you get totally befuddled by by the 4th 0 of the
third minor seventh. you
Hi Steven
did you try to do the following
set someFile = new( Xtra "FileIO")
errorCode = openFile(someFile, FilePath, 0)
errorCode = delete someFile
errorCode = closeFile( someFile )
set someFile = 0
it might work just a wild stab in the dark
Sincerely
Mark R. Jonkman
[To remove yourself
at's easier? Running a repeat loop, or
doing complex file management? The repeat loop won't fail, whereas
the File IO might act up at any time. Best to minimize the work
the computer has to do (in this case a 90MHz Pentium I). I might
be a victim of superstition here, but it feels like a safe
Gosh! Wouldn't it just be easier to delete the file and then rewriting to
it rather than going through all those repeats and stuff?
Cordially,
Pranav Negandhi
New Media Applications.
Learnet India Limited, Mumbai.
Phone: 91-22-859 8042 Ext: 410
I figured out a workaround, clunky as it may be
sorta...
I figured out a workaround, clunky as it may be.
---
set gTheWriteText = removeQuotes(gTheWriteText)
if the last item of gTheWriteText = " 3110" then
nothing
else
put SPACE after gTheWriteText
end if
on removeQuotes dataString
repeat with a = 1 to the number of
> FileIO obviously doesn't overwrite an entire text file
> when it writes to a file, it just writes from char a to char b.
> If there are more characters already in the text file beyond
> char b, they remain untouched.
I've had the same problem. The only workaround I could come up with was to
del
ED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Kerry Thompson
> Sent: Friday, August 10, 2001 1:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: File IO - how do I erase text in a file?
>
>
>
> >Is there Some way to just delete
> >the last char of the text file each tim
>Is there Some way to just delete
>the last char of the text file each time it opens
>it to save and then write to it
How about:
theText = readFile (theFile)
delete theText.char[theText.length]
writeString (theFile, theText)
Does that do what you want? I got a little lost in the part about th
Hello,
I have a problem with File IO I'm trying to solve.
I am writing a list to a text file and the last item
in the list is 3 numbers long, except in one case, it
is 4 numbers long and the last one is 0. Well, when
it writes to the file with a 3 number final item after
it has written
>You probably are, but I think Kerry was concatenating all his scripts into
>one text file.
You all are at least partially right :-)
Yes. .ls is the format for external scripts.
I'm saving the scripts to a bunch of individual .txt files so I can merge
some code produced by 3 different progra
Colin Holgate wrote:
>> am I right in thinking that ".ls" is the usual suffix for external
>> lingo scripts?
>
> You probably are,
I'm just guessing from the use of .js and .as...
oh... just noticed that the MACR site has MUS scripts as .ls files.
> but I think Kerry was concatenating all his
>am I right in thinking that ".ls" is the usual suffix for external
>lingo scripts?
You probably are, but I think Kerry was concatenating all his scripts
into one text file.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post
Kerry Thompson wrote:
> I found the problem, though. I was creating the file names by taking the
> name of the cast member and appending ".txt". In the process, some of the
> file names were too long for the Mac.
>
> Error trapping doesn't help much--when you try to create a file with a name
> t
>it could be because the script instantiates the xtra on every iteration...
>
>try moving the xtra instantiation code before the loop starts, and
>set theFile = 0 after the loop finishes, so that only a single
>instance of the xtra is used for all operations.
Good idea, but setting theFile = 0 e
Kerry Thompson wrote:
> Am I missing something simple here? I wrote a little utility to copy the
> script text out to text files, and it crashes my Mac on about the 15th
> iteration.
>
> on copyScripts castLibName, targetDir
> repeat with i = 1 to the number of members of castlib (castLibName)
Am I missing something simple here? I wrote a little utility to copy the
script text out to text files, and it crashes my Mac on about the 15th
iteration.
on copyScripts castLibName, targetDir
repeat with i = 1 to the number of members of castlib (castLibName)
if member(i, castLibName).
---
Samuel Colt - the inventor of the point and click interface.
>How can I accomplish this using File IO?
I don't think you can with FileIO, but FileXtra3 will do it (and it's
free). There's a method, fx_FileExists, I believe, that will do your
>How can I accomplish this using File IO?
I don't think you can with FileIO, but FileXtra3 will do it (and it's
free). There's a method, fx_FileExists, I believe, that will do your check.
Or, if you prefer, Buddy API has a similar function, and it's free if you
Hello,
I'm trying to do something with the file IO xtra but
I am having trouble figuring it out.
What I want to do is check to see if a file exists
and if it does, I want to load it, and if it doesn't
I want to write it.
The file will exist at C:\ and is a .txt file.
How can I accom
> IMNSHO Lists in Text Files Suck Hard!
>
> Reason: in case you need to view it or edit it in another
> program it is hard
> to make sense of.
>
> Furthemore, converting 3-dimendional lists into CSV or
> Tab-delimited text
> files is a piece of cake. (Incidentally, both formats can be
> read by mo
apps.)
Pekka
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Al Hospers
> Sent: 4. heinäkuuta 2001 18:54
> To: [EMAIL PROTECTED]
> Subject: RE: Database and File IO
>
>
> > I've got a file in a hard disk (fomat "
> I've got a file in a hard disk (fomat "clients.txt"). With an
> Xtra File IO i
> get read all the database, but i would like to read only a record.
>
> Name City Salary
> Bohanen Geneva 4567
> Klein Bern 389
> Meister Lugano 987
Hello All,
I've got a file in a hard disk (fomat "clients.txt"). With an Xtra File IO i
get read all the database, but i would like to read only a record.
Name City Salary
Bohanen Geneva 4567
Klein Bern 389
Meister Lugano 9876
Correia Basel7055
etc
hi all-
okay maybe i'm being lazy now, but i have a question.
in my best andy rooney impression:
did you ever notice that file io fails to write to a file that lives in
the director folder? maybe it's me, but if i create a file on the
desktop, i can write to it just fine, but if i cre
> With your current project set up this way, it looks like you're the one in
> the best position to confirm this. :-) What are the results of your
tests?
> Another question -- does your project run on PC & Mac? That is, using
your
> project, could a user save a file onto a remote PC from Mac on
> Could this be confirmed? I currently have a project that
> lets users save their files where they want. As the
> savedialogs of FileIO let you select an onther computer
> on your LAN, I expected that I could save there
With your current project set up this way, it looks like you're the one in
Rob Wingate wrote :
> For that matter, I don't think you can even save onto a remote disk using
> FileIO. I'm probably wrong about that, but it's not the issue anyway.
Could this be confirmed? I currently have a project that lets users save
their
files where they want. As the savedialogs of Fil
> I use file IO xtra to save an external file, is it a good idea
> to save the file on the server disk?
I think I'm having deja vu.
It's not a good idea for a client to save onto a server. It's better to
post client data to a server-side cgi or something. Writing direct
]]
Sent: Friday, September 29, 2000 8:46 AM
To: [EMAIL PROTECTED]
Subject: file IO & saving file on server !
Hi list,
My question is i run a .exe projector on many (4) local computer
links to a server.(windows NT)
I must save the result of an examine on the server disk? (client demand)
I
Hi list,
My question is i run a .exe projector on many (4) local computer
links to a server.(windows NT)
I must save the result of an examine on the server disk? (client demand)
I use file IO xtra to save an external file, is it a good idea to save
the file on the server disk?
is it a
> If you are only trying to read the files, you should open them using
> the write only mode (1).
A big thanks to Stephen Ingrum for pointing this parameter out to me.
Thanks. That fixed it!
Cheers,
Stephen
--
s t e p h e n j a m e s r e c k e r
m u l t i m e d i a p r o d u c e r
on the PC side once I burn a disc the file isn't read any more.
Everything works fine in authoring mode on the PC but when I copy the files
to my Mac and burn a disc I get an I/O error when I run it on a PC.
All files on a CD are read-only- PC or Mac.
If you are only trying to read the files,
I'm using FileIO to read text into Director on a cross platform CD.
Everything works fine on the Mac side, but on the PC side once I burn a disc
the file isn't read any more. Everything works fine in authoring mode on the
PC but when I copy the files to my Mac and burn a disc I get an I/O error
wh
34 matches
Mail list logo