Anyone have a sample of a widget reading a .txt/.xml file???

nike_golf
nike_golf used Ask the Experts™
on
I'm looking to build a simple Windows Gadget for myself that can read a .txt or .xml file. Does anyone have any examples of doing such a thing?

Any help would be appreciated.

Thanks.

NG,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Zvonko זְאֵבSystems architect
Top Expert 2006

Commented:

Author

Commented:
I don't see anything related reading /txt or .xml files in that link?

NG,
Zvonko זְאֵבSystems architect
Top Expert 2006

Commented:
If you have your Gadget already running then what help do you need to insert the method for reading files into your JavaScript functions?
After the file is streamed to a variable what should happen then? What is in the file? What do you use the file for?
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Author

Commented:
Yes, reading a file would be the information that I was looking for. I'm looking to read a line from a file as an array and simply display it on the widget.

Thanks.
NG,

Author

Commented:
To be a little more specific my data would look something like the following:

7/24/2011,240,30,31,9
7/25/2011,241,31,32,10
7/26/2011,242,32,33,11
7/27/2011,243,33,34,12
7/28/2011,244,34,35,13
7/29/2011,245,35,36,14
7/30/2011,246,36,37,15
7/31/2011,247,37,38,16
8/1/2011,248,38,39,17
8/2/2011,249,39,40,18
8/3/2011,250,40,41,19
8/4/2011,251,41,42,20
8/5/2011,252,42,43,21
8/6/2011,253,43,44,22
8/7/2011,254,44,45,23
8/8/2011,255,45,46,24
8/9/2011,256,46,47,25


I need to read the line that would match the current date from a text file located on a network drive, G:\dates.txt. The fields should be in an array that can be displayed on the widget..

Does that explain it a little clearer?

NG,



Author

Commented:
No other input on this problem?

NG,
Systems architect
Top Expert 2006
Commented:
Rename the Zip file to: reading.gadget
When you open it with the name reading.gadget then will the gadget get installed.

Of course you can install it only when your Windows version has a Sidebar.
reading.gadget.zip

Author

Commented:
Exactly what I was hoping to find.

Many thanks.
Zvonko זְאֵבSystems architect
Top Expert 2006

Commented:
You are welcome.

Author

Commented:
Zvonko, every time I edit the gadget by un-compressing the files make my changes then re-compressing them and naming the gadget with the extension gadget, it never loads???

What's the secret that I'm missing here???

NG,
Zvonko זְאֵבSystems architect
Top Expert 2006

Commented:
Can you open a question please?
Zvonko זְאֵבSystems architect
Top Expert 2006

Commented:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial