Bug 150999

Summary: Ability to read text file with JavaScript
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andrew Walker 2007-10-18 21:53:07 UTC
Version:           1.6.0 (using KDE KDE 3.5.3)
Installed from:    Compiled From Sources
OS:                Linux

It would be beneficial if there was a way to read text files from within JavaScript.
For example, a user would like to read a list of filenames from a text file.
Comment 1 Andrew Walker 2007-10-20 00:32:22 UTC
SVN commit 727169 by arwalker:

CCBUG:150999 First draft of JavaScript functionality for reading files

 M  +2 -1      Makefile.am  
 A             bind_file.cpp   [License: GPL (v2+)]
 A             bind_file.h   [License: GPL (v2+)]
 M  +4 -1      js.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=727169
Comment 2 Andrew Walker 2007-10-20 01:34:55 UTC
Is this necessary, or can we simply create a QFile from with JavaScript?
Comment 3 Andrew Walker 2007-10-22 21:40:27 UTC
Functionality for reading from files is present.

This can always be removed, if we can access a QFile object,
or extended if we want the ability to write to files.