Bug 150999 - Ability to read text file with JavaScript
Summary: Ability to read text file with JavaScript
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 21:53 UTC by Andrew Walker
Modified: 2007-10-22 21:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.