Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: to open and read a file
Replies: 5   Last Post: Jan 1, 2013 11:00 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Shobana

Posts: 13
Registered: 12/20/12
Re: to open and read a file
Posted: Jan 1, 2013 11:00 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

dpb <none@non.net> wrote in message <kbuo8d$ek8$1@speranza.aioe.org>...
> On 1/1/2013 6:18 AM, Shobana wrote:
> > dpb <none@non.net> wrote in message <kbsg7j$lav$1@speranza.aioe.org>...
> >> On 12/31/2012 7:34 AM, Shobana wrote:
> >> > hai....
> >> >
> >> > "fid = fopen('C:\Users\Public\Downloads\message.txt');
> >> > %S = fscanf(fid,'%s);
> >> > fclose(fid);"
> >> >
> >> > In the above specified code i am getting error in the fopen statement
> >> > please reply me if anybody knows .Thanks in advance

> >>
> >> Use the optional return value to see what the cause of the failure is...
> >>
> >> doc fopen
> >>
> >> Most likely would be the file isn't where the fully-qualified name is
> >> on the system on which you're running the code or this isn't an
> >> existing subdirectory on the system...
> >>
> >> --version is 7.11.0.584(R2010b)

>
> Pretty much immaterial...
>
> What was result of
>
> [fid,msg] = fopen('C:\Users\Public\Downloads\message.txt')
>
> ???
>
> Again,
>
> doc fopen
>
> --

I got answer by changing the path of the file



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.