1. Writing Strings To Text Files

Chris Cox wrote:

>Since then, I've been looking
>for a way to write the contents of a string
>to a text file.


Jay Turley Wrote:
>printf(fn,"%s ",{s1})
>printf(fn,"%s\n",{s2})

Here is another solution:

My understanding is that puts()  is a way of putting a string to a
file...can't you just put
puts(fn,string) and have it write the entire string to that device?
I am thinking that you can...it is harder sometimes to read stuff in than to
write...

The first thing is to get the fn to write to.
That is done with Jay's line
fn = open("c:\\myfile.txt","w")

fn being the fn that puts will use... and the "w" being write to file...

Hope this helps...
Monty in Oregon.

new topic     » topic index » view message » categorize

2. Re: Writing Strings To Text Files

--------------93C63408D8E2C83C135D5D96

Dear folks,

Thanks for all the help. It's been much
appreciated. I finally got the program to
work, and I think I've figured out what I
did wrong. Thanks again.

Also, a while ago I ported some old Qbasic
code to Euphoria. (sharpen up some of my
programming skills) I've attached one of
the files to this email. Thanks again!


Chris Cox
cox.family at sk.sympatico.ca
--
--------------93C63408D8E2C83C135D5D96

new topic     » goto parent     » topic index » view message » categorize

3. Re: Writing Strings To Text Files

-----Original Message-----
From: Cox Family <cox.family at SK.SYMPATICO.CA>
Subject: Re: Writing Strings To Text Files



[xplode.ex]

>Also, a while ago I ported some old Qbasic
>code to Euphoria. (sharpen up some of my
>programming skills) I've attached one of
>the files to this email. Thanks again!


I like it!

Thanks for using the palette routines!

Greg Harris

new topic     » goto parent     » topic index » view message » categorize

4. Re: Writing Strings To Text Files

oh maaaannnn!!! i wish that wasn't encoded in BASE64!
                                                 JARS OF CLAY ROCKZ FOR
GOD
_________________
"When it comes to programming languages, Eu™ by RDS®™©(did i forget an
®?) is a cut above" - Matt1278 and Prezsoft
Webbers: <A HREF="mailto:prezsoft at juno.com">prezsoft at juno.com</A>,
president of SoftCo.® Uh, no slogan at the moment™
        Go out and get Euphoria™ by Rapid Deployment Software® NOW!!!

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
or call Juno at (800) 654-JUNO [654-5866]

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu