Newbie, File generating question and mailing list problem.. 
Author Message
 Newbie, File generating question and mailing list problem..

Hi.  Two questions from a newbie..

1. I wanted to generate a text file from squeak, so I tried

 | file |
   file _ FileStream fileNamed: ('test.txt').
   file ascii.
   (DataStream on: file) writeString: 'test'.
   (DataStream on: file) writeString: 'test2'.
   file close.

   When I open the file on windows, there's always two byte non-ascii
   string I don't want.
   The file contents is like this.

        xxtestxxtest2

   Actually, 'xx' part is invisible if I send the contents to anyone..
   I thougt it's unix characters like lf.  I don't have answer yet.

   How can I get rid of them ?

2. In Squeak2.0 (windows) BookMorph, anything I touch results
   a primitive fail error on SoundPlayer class.  I guess my
   lack of soundcard is making the problem.

   How can I turn off the sound ?

And something is wrong with my address.
I hope one of you can help me.

I subscribed on squeak mailing list from the site
  < http://www.*-*-*.com/ ;





And I'm receiving mails properly from your list.


list.

I don't understand this situation.

The reply from the mail server follows..

Quote:

>because your e-mail address does not appear to be subscribed.  You
>can only send mail to the mailing list if you are subscribed.  If
>you are possibly subscribed under another alias, please
>let me know so I can change it if necessary.

>If you want to send to the mailing list from different addresses,
>please tell me.  I can set it up to accept mail from multiple
>addresses.

>Once the problem is resolved, you will need to resend your message
>o the mailing list.

>-Eric

Thanks !



Wed, 18 Jun 1902 08:00:00 GMT  
 Newbie, File generating question and mailing list problem..


| Hi.  Two questions from a newbie..
|
| 1. I wanted to generate a text file from squeak, so I tried
|
|  | file |
|    file _ FileStream fileNamed: ('test.txt').
|    file ascii.
|    (DataStream on: file) writeString: 'test'.
|    (DataStream on: file) writeString: 'test2'.
|    file close.
|
|    When I open the file on windows, there's always two byte non-ascii
|    string I don't want.

A DataStream is used to store Squeak objects in an external representation
so that when they are read back in they can be reconverted back to their
representative objects.  You happen to be using some of the "internal,
private" protocol of DataStream (writeString) which is writing out the
size of the string before the individual characters.

For just writing characters to a file, you don't want to use a DataStream,
you simply want to use the standard stream protocol of nextPut: and
nextPutAll:

   | file |
   file _ FileStream newFileNamed: ('test.txt')
   file ascii.
   file nextPutAll: 'test'.
   file nextPutAll: 'test2'.
   file close.

--

     -- Tim Olson



Wed, 18 Jun 1902 08:00:00 GMT  
 Newbie, File generating question and mailing list problem..


::And something is wrong with my address.
:I hope one of you can help me.
:
:I subscribed on squeak mailing list from the site
:  <http://squeak.cs.uiuc.edu/mail/subscribe.html>
:


:


:
:And I'm receiving mails properly from your list.
:

:list.

   I've had the exact same problem. I'm not even sure who to contact to
resolve it.

-Eric



Wed, 18 Jun 1902 08:00:00 GMT  
 Newbie, File generating question and mailing list problem..

Hi,

Quote:



> ::And something is wrong with my address.
> :I hope one of you can help me.
> :
> :I subscribed on squeak mailing list from the site
> :  <http://squeak.cs.uiuc.edu/mail/subscribe.html>
> :


> :


> :
> :And I'm receiving mails properly from your list.
> :

> :list.

>    I've had the exact same problem. I'm not even sure who to contact to
> resolve it.

> -Eric


  This is an automated subscription mechanism.  For your verification, a
  transcript of the original subscription request is included below.

  If the wrong address has been subscribed and you seem to be unable to fix it
  yourself, reply to this message now (quoting it entirely (for diagnostic
  purposes), and of course adding any comments you see fit).


Hope this helps,  -John

************************************************************************
John Albert Fehr
Ranch to Market, Inc.
PO Box 162404
Austin, Texas  78716-2404
(512) 472-6726

************************************************************************



Wed, 18 Jun 1902 08:00:00 GMT  
 Newbie, File generating question and mailing list problem..


Wed, 18 Jun 1902 08:00:00 GMT  
 Newbie, File generating question and mailing list problem..

Thank you, Mr.Olson.
It is working !

Quote:

> A DataStream is used to store Squeak objects in an external representation
> so that when they are read back in they can be reconverted back to their
> representative objects.  You happen to be using some of the "internal,
> private" protocol of DataStream (writeString) which is writing out the
> size of the string before the individual characters.

> For just writing characters to a file, you don't want to use a DataStream,
> you simply want to use the standard stream protocol of nextPut: and
> nextPutAll:

>    | file |
>    file _ FileStream newFileNamed: ('test.txt')
>    file ascii.
>    file nextPutAll: 'test'.
>    file nextPutAll: 'test2'.
>    file close.

> --

>      -- Tim Olson



Wed, 18 Jun 1902 08:00:00 GMT  
 Newbie, File generating question and mailing list problem..


Wed, 18 Jun 1902 08:00:00 GMT  
 Newbie, File generating question and mailing list problem..

Quote:



>::And something is wrong with my address.
>:I hope one of you can help me.
>:
>:I subscribed on squeak mailing list from the site
>:  <http://squeak.cs.uiuc.edu/mail/subscribe.html>
>:


>:


>:
>:And I'm receiving mails properly from your list.
>:

>:list.
>   I've had the exact same problem. I'm not even sure who to contact to
>resolve it.

There was a problem where the accept list was unlinked from the
distribution list so recent subscribers couldn't send mail to the
list (since they weren't on the accept list). This problem should
be fixed now.

John Brant



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. question on event-generated errors (was Re: newbie TkCon question)

2. newbie stuck on generating lists of structures

3. Newbie Help - Generating list of variables

4. Newbie Question, list = list + x VS append (x)

5. Ruby Newbie mailing list

6. generate class list from .h files

7. Newbie question: How do I generate random numbers?

8. simple newbie question on sending keystrokes -- generate event

9. Newbie problem:Generating widgets and their bindings

10. Prolog question: generating lists from rules

11. Help: Lahey Fortran (Newbie question) - e-mail answer please

12. Help: Newbie FORTRAN I/O question (ELF90) - e-mail reply please

 

 
Powered by phpBB® Forum Software