Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
Shobana
Posts:
13
Registered:
12/20/12
|
|
Re: to open and read a file
Posted:
Jan 1, 2013 11:00 PM
|
|
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
|
|
|
|