How exactly do you read or write?

   load'files'
   'test123'fwrite jpath'c:\program files\common files\test.txt'
7
   fread jpath'c:\program files\common files\test.txt'
test123

   1!:0<jpath'c:\program files\common files'
┌────────────┬──────────────────┬─┬───┬──────┐
│Common Files│2006 2 25 15 12 27│0│rw-│----d-│
└────────────┴──────────────────┴─┴───┴──────┘


--- Jean Claude COEZ <[EMAIL PROTECTED]> wrote:

> I'll try to be as explicit as possible. 
> I wrote a script for a sudoku solver and I keep track of grids to be solved. 
> So I put all the
> data in a subdirectory called 'grilles'. To distribute my package I zipped 
> the J stuff ( J.exe
> dll shortcut etc ) including the subdir 'grilles'. I mailed that to a friend 
> who unzipped the
> package in something like 'c:\mes jeux'. Everything run fine except when he 
> wants to access a
> grid stored in the subdir 'grilles'. In the script I use jpath to read or 
> write to the subdir
> 'grilles' but I obtain only 'c:\mes' and consequently can't access those 
> files. If we rename the
> 'c:\mes jeux' to c:\mesjeux' everything is fine...
> Hope that helps.
> JC Coez
> 
> > Message du 26/02/06 00:35
> > De : "Chris Burke" 
> > A : "Programming forum" 
> > Copie à º 
> > Objet : Re: [Jprogramming] Jpath bug ?
> > 
> > Jean Claude COEZ wrote:
> > > Chris Burke wrote:
> > > JCCoez wrote:
> > > 
> > >>When the path contains un space, jpath returns only the string up to the
> > >>first space. I am using J504 on Windows Xp. Am I missing something ?
> > >>JCC
> > > 
> > > 
> > > What exactly is the problem? The jpath verb does not seem to treat
> > > spaces specially, for example:
> > > 
> > > jpath 'abc def'
> > > abc def
> > > 
> > > jpath '~system/abc def'
> > > /home/chris/j601/system/abc def
> > > ------------------------------------------------
> > > 
> > > I re-ask the same question and precise that the names of directories 
> > > could be 'ho me' or
> 'chr is' 
> > > with an extra blank. In that case, the J package was installed in a 
> > > directory having space 
> > > in its name. I know this is not a good usage but it may happen.
> > 
> > Please give an explicit example of the problem you are having, so that
> > we can reproduce it. Something simple like: load J, enter sentence X,
> > get result Y, expect result Z.
> > 
> > The J system supports directories with blanks in the name. Any problems
> > in this area will be fixed.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> > ---------------------------------------------------------------------------------------
> > Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus mail. 
> > Aucun virus connu a ce jour par nos services n'a ete detecte.
> > 
> > 
> > 
> >
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to