nike_golf
asked on
Anyone have a sample of a widget reading a .txt/.xml file???
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,
Any help would be appreciated.
Thanks.
NG,
http://msdn.microsoft.com/en-us/magazine/cc163370.aspx
ASKER
I don't see anything related reading /txt or .xml files in that link?
NG,
NG,
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?
After the file is streamed to a variable what should happen then? What is in the file? What do you use the file for?
ASKER
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,
Thanks.
NG,
ASKER
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,
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,
ASKER
No other input on this problem?
NG,
NG,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Exactly what I was hoping to find.
Many thanks.
Many thanks.
You are welcome.
ASKER
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,
What's the secret that I'm missing here???
NG,
Can you open a question please?