<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1014436" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1014436</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1085425</link>
    <description> &lt;p&gt;Yea, that I know...&lt;br /&gt;
I used to define all my variables, but it just kept happen that I degined them twice, and not even the &quot;on error resume next&quot; would take care of that for me!&lt;br /&gt;
I got annoyed, and stopped dimming them.&lt;/p&gt;
 </description>
     <pubDate>Tue, 17 Jul 2001 17:28:01 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1085425 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1085422</link>
    <description> &lt;p&gt;If you use &lt;strong&gt;Option Explicit&lt;/strong&gt; (at the top of the code), then you&#039;ll only be able to use dimmed variables.  If you try to use a variable that was not dimmed, the program/script will error out.  This helps prevent mispelling of variables.&lt;/p&gt;
 </description>
     <pubDate>Tue, 17 Jul 2001 17:09:21 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1085422 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>good habits</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1085398</link>
    <description> &lt;p&gt;hi again,&lt;/p&gt;
&lt;p&gt;im not sure, but i think that previous versions of asp required you to dim all variables. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;as far as dimming goes, it is really really good programming habit. i know it sounds like extra unnecessary work, but its a good idea to do it.&lt;br /&gt;
it tells you about the variables in the following code and even what type they are. eg: dimming a variable as an integer tells you that it is an integer. it helps you read and understand code better. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;imagine if you posted some code on the forums or someone else reads your code, it would be hard for them to understand exactly what does what.&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;. if you dimmed the vars, it makes it more readable to someone whos not particularly familiar with that piece of code.&lt;/p&gt;
&lt;p&gt;it also helps you debug and keep track of vars in code that can sometime span 100&#039;s of lines.&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;and thats that. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 17 Jul 2001 10:42:25 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1085398 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1085394</link>
    <description> &lt;p&gt;I finally found the error!&lt;br /&gt;
Peter, you said I should use&lt;br /&gt;
fso.write = &quot;...&quot;&lt;br /&gt;
But I should have used&lt;br /&gt;
fso.write &quot;...&quot;&lt;/p&gt;
&lt;p&gt;Now it works perfectly!&lt;/p&gt;
&lt;p&gt;Thank you all very much!&lt;/p&gt;
&lt;p&gt;Abhishek , You were also right that I needed to stop using filesystemobject as a variable. That screwed it up as well.&lt;/p&gt;
&lt;p&gt;You said that I should dim my variables... Can you explain me why? I never do that... Don&#039;t know the difference (I only do it when I use arrays).&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
Vasper&lt;/p&gt;
 </description>
     <pubDate>Tue, 17 Jul 2001 10:26:46 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1085394 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>a few points</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1084966</link>
    <description> &lt;p&gt;hi hotcut, &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;ol class=&quot;bb-list&quot;&gt;
&lt;li&gt;avoid naming your filesystemobject varialble as &quot;FileSystemObject&quot;. try naming it something like objFSO.&lt;/li&gt;
&lt;li&gt;use &lt;strong&gt;set&lt;/strong&gt; objFile = ........ . &lt;em&gt;always use SET when assigning methods/objects to a variable&lt;/em&gt;. but never use set when assigning values.&lt;/li&gt;
&lt;li&gt; check that your host supports FileSystemObject.&lt;/li&gt;
&lt;li&gt;make sure your path to the file is correct.&lt;/li&gt;
&lt;li&gt;last point: for more readable programming, always set variables for any methods/string. eg: instead of using ...OpenTextFile(server.mappath(&quot;breesy.txt&quot;)), set a variable to &lt;em&gt;varFile = server.mappath(&quot;breesy.txt&quot;)&lt;/em&gt;, and use ...OpenTextFile(varFile). always dim variables too. i suppose you didn&#039;t post it but u dimmed your vars?&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; i hope it helped &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 09 Jul 2001 01:04:56 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1084966 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1084911</link>
    <description> &lt;p&gt;hmmmm... seems simple, and I wish it was...&lt;/p&gt;
&lt;p&gt;Unfortunetly I am getting the same reason as before:&lt;/p&gt;
&lt;p&gt;The object doesn&#039;t support this method: &#039;objFile&#039; &lt;/p&gt;
&lt;p&gt;I have not idea what that means...&lt;br /&gt;
It clears the file perfectly, but that is all! It doesn&#039;t write ANYTHING in that file!&lt;/p&gt;
&lt;p&gt;Can you help?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
~casper&lt;/p&gt;
 </description>
     <pubDate>Sat, 07 Jul 2001 15:34:17 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1084911 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1084908</link>
    <description> &lt;p&gt;If you&#039;re just doing a bulk write (not line by line) then you don&#039;t need to use the textstream method. Try this:&lt;/p&gt;
&lt;p&gt;Set FileSystemObject = CreateObject(&quot;Scripting.FileSystemObject&quot;) &lt;/p&gt;
&lt;p&gt;objFile = FileSystemObject.OpenTextFile(server.mappath(&quot;breesy.txt&quot;), 2, True) &lt;/p&gt;
&lt;p&gt;objFile.Write = request.form(&quot;html&quot;)&lt;br /&gt;
objFile.Close &lt;/p&gt;
&lt;p&gt;Set FileSystemObject = Nothing &lt;/p&gt;
&lt;p&gt;Make sure the breesy.txt file exists and that it has write permissions.&lt;/p&gt;
 </description>
     <pubDate>Sat, 07 Jul 2001 15:10:05 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1084908 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1084905</link>
    <description> &lt;p&gt;Ok, As I weren&#039;t able to upload the files as I wanted, I was though able to use some of all this...&lt;/p&gt;
&lt;p&gt;Now the problem is very simple.&lt;br /&gt;
I just need to make a file the content of what is posted by a form!&lt;br /&gt;
That should be simple!&lt;/p&gt;
&lt;p&gt;But it wont work &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;Set FileSystemObject = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;) &lt;br /&gt;&lt;br /&gt;objFile = FileSystemObject.OpenTextFile(server.mappath(&amp;quot;breesy.txt&amp;quot;)) &lt;br /&gt;&lt;br /&gt;objTextStream = objFile.OpenAsTextStream &lt;br /&gt;&lt;br /&gt;objTextStream.writeline = request.form(&amp;quot;html&amp;quot;)&lt;br /&gt;objTextStream.Close &lt;br /&gt;&lt;br /&gt;Set FileSystemObject = Nothing &lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;it is ages ago since I used files to do anything... I once created a questbook this way, but changed it to a database...&lt;/p&gt;
&lt;p&gt;There will only be one single line, which should be the content of the form posted.&lt;br /&gt;
However, when I try it, the following error come:&lt;/p&gt;
&lt;p&gt;Microsoft VBScript runtime error &#039;800a01b6&#039; &lt;/p&gt;
&lt;p&gt;Object doesn&#039;t support this property or method &lt;/p&gt;
&lt;p&gt;/breesy_forumbanner.asp, line 3&lt;/p&gt;
&lt;p&gt;can someone help me?&lt;/p&gt;
&lt;p&gt;Sorry fopr bothering you.&lt;/p&gt;
&lt;p&gt;~Casper&lt;/p&gt;
 </description>
     <pubDate>Sat, 07 Jul 2001 12:15:08 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1084905 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1084341</link>
    <description> &lt;p&gt;Not sure if you are still looking for info on this subject, but company I work for does a full system inventory of all their computers worldwide on a weekly basis. It is done via the login script (NT) calling a batch file which runs a program called netcensus or at least it used to and then dumping the obtained info into a database. &lt;/p&gt;
&lt;p&gt;This might be what you are looking for:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.tallysys.com/&quot; class=&quot;bb-url&quot;&gt;http://www.tallysys.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To see a sample report that I just had done on my own computer with their webcensus version, check this one out:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://101usedvideogames.com/webcensus.html&quot; class=&quot;bb-url&quot;&gt;http://101usedvideogames.com/webcensus.html&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 28 Jun 2001 21:56:02 +0000</pubDate>
 <dc:creator>cds</dc:creator>
 <guid isPermaLink="false">comment 1084341 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/asp-read-file#comment-1083435</link>
    <description> &lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;Thanks once again.&lt;/p&gt;
&lt;p&gt;I would like to put it in a cookie, but that aint enough unfortunetly...&lt;/p&gt;
&lt;p&gt;The problem is that the user downloads some sounds, images and a lot of other things, which I need to know if he has on his computer, and if it is the right version. Therefore I need to check the directory where the files are in, to see if the version.html contains the latest verion-information; if the user has the current files.&lt;br /&gt;
Thats why I would need to run this all on the fly without the user knowing.&lt;/p&gt;
&lt;p&gt;I will see what I can do, if you give me a working URL for that site &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;  It tells that the site doesn&#039;t work when I click it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
~casper&lt;/p&gt;
&lt;p&gt;PS: yea you know a lot&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Jun 2001 15:31:59 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1083435 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
