You can do it with ActiveX:
var fso = new ActiveXObject("Scripting.FileSystemObject");
var f = fso.OpenTextFile(path, 1);
var line = f.ReadLine();

On Mon, May 25, 2009 at 2:54 PM, mcrayeps <[email protected]>wrote:

>
> Oh, i c then..... so what i should use when i want to get text from
> network site? thq
>
> On May 25, 12:39 am, Teo <[email protected]> wrote:
> > Hi,
> > from what i know, openText can only open files from the gadget package.
> >
> > On Sun, May 24, 2009 at 7:12 AM, mcrayeps <
> [email protected]>wrote:
> >
> >
> >
> > > Hi, I want to use gadget to open a file text in network by this code:
> > > var suhu=gadget.storage.openText("\\\\169.254.194.195\\Shared\
> > > \suhugg.txt");
> >
> > > but it keep showing this error:
> > > 11:05:01.636 - ERROR: storage: Can't open "\\169.254.194.195\Shared
> > > \suhugg.txt" as a stream
> >
> > > What should I do to fix this error?
> > > Thanks
> >
> > --
> > Teo (a.k.a. Teominator a.k.a. Teodor Filimon)
> > sitewww.teodorfilimon.com| blogwww.teodorfilimon.blogspot.com
> > GMT +2
>
> >
>


-- 
Teo (a.k.a. Teominator a.k.a. Teodor Filimon)
site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com
GMT +2

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to