<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'File handling.' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'File handling.' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 15:58:24 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 15:58:24 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>File handling.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/412669/412669/file-handling/</link>
      <description>I'm beginner and i need to do that program :&lt;br /&gt;
&lt;br /&gt;
File (input.txt) have three rows and each row has exactly three integers(I need to ask user to enter integers). Establish a program that reads in integers and writes them in reverse order (i need to exchange rows and columns to ) in file output.txt.&lt;br /&gt;
&lt;br /&gt;
Like. If i have numbers :&lt;br /&gt;
&lt;br /&gt;
14  67  34                    17  2  89&lt;br /&gt;
29  45  32       then ===&amp;gt;    32  45  29 &lt;br /&gt;
89   2  17                    34  67  14&lt;br /&gt;
&lt;br /&gt;
I've done something but i think it's 100% wrong...I've been struggling with that some weeks and i don't know what to do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Program kt6_2;


var
   row1 : array[1..3] of integer;
   row2 : array[1..3] of integer;
   row3 : array[1..3] of integer;

Begin
   writeln('Enter first row:');
   readln(row1[3]);
   writeln('Enter second row:');
   readln(row[3]);
   writeln('Enter third row:');
   readln(row3[3]);&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/412669/412669/file-handling/</guid>
      <pubDate>Sun, 31 Jan 2010 12:46:37 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: File handling.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/412669/412679/re-file-handling/#412679</link>
      <description>If I understood right:&lt;pre class="sourcecode"&gt;&lt;span style="color: Blue;"&gt;var t:array[1..3,1..3] of integer;
    i,j:byte;
    f:text;

begin
 for i:=1 to 3 do
  for j:=1 to 3 do
   begin write('Enter element [',i,',',j,']  ');readln(t[i,j]);end;
 assign(f,'input.txt');
 rewrite(f);
 for i:=1 to 3 do begin
  for j:=3 downto 1 do
   write(f,t[i,j],' ');
  writeln(f);
 end;
 close(f);
end.
&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/412669/412679/re-file-handling/#412679</guid>
      <pubDate>Sun, 31 Jan 2010 22:41:06 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: File handling.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/412669/412716/re-file-handling/#412716</link>
      <description>It's working but i need to change last row to first row. I tried something but nothing isn't working. When i changed i and j then my 'input.txt' showed me nothing :( &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/412669/412716/re-file-handling/#412716</guid>
      <pubDate>Mon, 01 Feb 2010 08:36:59 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: File handling.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/412669/412756/re-file-handling/#412756</link>
      <description>: It's working but i need to change last row to first row. I tried &lt;br /&gt;
: something but nothing isn't working. When i changed i and j then my &lt;br /&gt;
: 'input.txt' showed me nothing :( &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Observe what I did to reverse the columns, reversing the rows could be done the same way... &lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/412669/412756/re-file-handling/#412756</guid>
      <pubDate>Mon, 01 Feb 2010 14:25:18 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>