RE: File IO - how do I erase text in a file? SOLVED...

2001-08-10 Thread pranavn
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

RE: File IO - how do I erase text in a file?

2001-08-09 Thread Mark R. Jonkman
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

RE: File IO - how do I erase text in a file?

2001-08-09 Thread Mark R. Jonkman
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

RE: File IO - how do I erase text in a file? SOLVED...

2001-08-09 Thread Steven Sacks
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

RE: File IO - how do I erase text in a file? SOLVED...

2001-08-09 Thread pranavn
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

RE: File IO - how do I erase text in a file? SOLVED...

2001-08-09 Thread Steven Sacks
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

RE: File IO - how do I erase text in a file?

2001-08-09 Thread Sean Wilson
> 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

RE: File IO - how do I erase text in a file?

2001-08-09 Thread Steven Sacks
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

Re: File IO - how do I erase text in a file?

2001-08-09 Thread Kerry Thompson
>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

File IO - how do I erase text in a file?

2001-08-09 Thread Steven Sacks
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

Re: File IO

2001-07-29 Thread Kerry Thompson
>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

Re: File IO

2001-07-28 Thread Christian Wach
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

Re: File IO

2001-07-28 Thread Colin Holgate
>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

Re: File IO

2001-07-28 Thread Christian Wach
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

Re: File IO

2001-07-27 Thread Kerry Thompson
>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

Re: File IO

2001-07-27 Thread Christian Wach
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)

File IO

2001-07-26 Thread Kerry Thompson
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).

Re: FILE IO xtra - how to?

2001-07-23 Thread pranavn
--- 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

Re: FILE IO xtra - how to?

2001-07-23 Thread Kerry Thompson
>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

FILE IO xtra - how to?

2001-07-23 Thread Steven Sacks
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

RE: Database and File IO

2001-07-04 Thread Al Hospers
> 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

RE: Database and File IO

2001-07-04 Thread Pekka Buttler
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 "

RE: Database and File IO

2001-07-04 Thread Al Hospers
> 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

Database and File IO

2001-07-04 Thread Jacques Baume
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

file io question

2001-06-19 Thread R. Bhakti Klein
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

Re: file IO & saving file on xtranet !

2000-09-30 Thread Steven Ophalvens
> 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

RE: file IO & saving file on xtranet !

2000-09-30 Thread Robert Wingate
> 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

file IO & saving file on xtranet !

2000-09-30 Thread Steven Ophalvens
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

RE: file IO & saving file on server !

2000-09-29 Thread Robert Wingate
> 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

RE: file IO & saving file on server !

2000-09-29 Thread Clint Little
]] 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

file IO & saving file on server !

2000-09-29 Thread Martin Bedard
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

Re: File IO trouble w/read-only files

2000-09-25 Thread Stephen Recker
> 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

Re: File IO trouble w/read-only files

2000-09-24 Thread Stephen Ingrum
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,

File IO trouble w/read-only files

2000-09-24 Thread Stephen Recker
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