Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Karl Wochele Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Memoread not working Date: Mon, 30 Sep 2013 08:48:34 +0200 Lines: 28 Message-ID: References: <3b14a2d6-d414-41a6-bed5-6dabde6dbcd1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net bdI4NMcFFKb4CTkWGE1LnQieiFizUjztOL/ScWg5grv0aYWEqF Cancel-Lock: sha1:fdRdL++GNUsL19g8gYXlwhkknEY= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <3b14a2d6-d414-41a6-bed5-6dabde6dbcd1@googlegroups.com> Xref: csiph.com comp.lang.clipper.visual-objects:5878 Hi Rob, your mistake is the "="-Operator. "X"="" -> True ""="X" -> False "X"==""-> False So you have to use memoread()==NULL_STRING or NULL_String=memoread() HTH Karl Am 28.09.2013 10:49, schrieb Rob van Erk: > I use following simple code but no idea why it does not read the TXT file: > > local cString as string > If (cString := MemoRead("c:\readme.txt")) = null_string > Errorbox("error", "can not read file") > endif > > The "readme.txt" is not read-only, it does exist, it has a text in it, the user has all rights on c:\ root. No idea why the file is not read by the code. I also tried to open other files like "c:\doc.csv" > > Using VO2.8 SP2. > > Thanks for any tips... > Rob >