Help regarding Help File 
Author Message
 Help regarding Help File

Quote:

>    procedure Help is
>       Help_char:character ;
>    begin
>       Open(Help_File,In_File,"tax.hlp");
>       while not End_Of_File (Help_File) loop
>          Get(Help_File,Help_Char);
>          Put(Help_Char);
>       end loop; --end_of_file loop
>       Close(Help_File);
>    end Help;

> the problem is that this code isn't moving to the next line when the text in
> the file is..

The problem is that Get (F, C) silently consumes the end-of-line
terminator.  One solution is to just read in a line, and output a
terminator yourself, ie

procedure Help is
   Line : String (1 .. 80);
   Last : Natural;
begin
   while not End_Of_File (F) loop

      loop
         Get_Line (F, Line, Last);
         Put (Line (1 .. Last));
         exit when Last < Line'Last;
      end loop;

      New_Line;

   end loop;
end Help;



Sun, 12 Nov 2000 03:00:00 GMT  
 Help regarding Help File

Howdie

I'm writing a program that needs to read in from a file, one full page of help

at the moment it looks like this:
   procedure Help is
      Help_char:character ;
   begin
      Open(Help_File,In_File,"tax.hlp");
      while not End_Of_File (Help_File) loop
         Get(Help_File,Help_Char);
         Put(Help_Char);
      end loop; --end_of_file loop
      Close(Help_File);
   end Help;

the problem is that this code isn't moving to the next line when the text in
the file is..
The result is a page of information being squashed into only a few lines
any Idea's would be apreciated
thanx



Mon, 13 Nov 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help with regard to VSAM file open error RC=39

2. help! f90.help help help help

3. ***HELP***HELP***NEED INFORMATION***HELP***HELP

4. HELP HELP HELP HELP

5. HELP HELP HELP HELP

6. Ord Function HELP Please HELP HELP HELP

7. help help help help!!!!!!!!!!!

8. (HELP (HELP (HELP (HELP))))

9. HELP: HELP: HELP: HELP: Online-manual on Expect

10. Gawk 3.1.1 - Question regarding a variable in a print statement and help with code

11. Need immediate help regarding Error code 5

12. Help Needed Regarding ..Problems Reading An Dos Directory!!

 

 
Powered by phpBB® Forum Software