AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

how to read json file
 
 

How can i read json file stored in the same directory with the bot directory in RAWDATA by using jsopen. I’m blocking on the url syntax.

Thank in advance

 

 
  [ # 1 ]

Use the file:// protocol.
It is tricky because you have to use a full path, there are no relative paths, and there is no %variable to give the root (or any other significant folder) in a CS installation (hint: Bruce).

e.g.
file://c:/cs/RAWDATA/file.txt
file:///u/home/cs/RAWDATA/file.txt

 

 
  login or register to react