>On my final page, I want to provide a button that will allow the user to "view" either of these ascii text files. The file might be wider than the screen so therefore I want a horizontal scroll bar as well. Neither file will be edited using this, just viewed.
You can use MODIFY FILE, but like you see, if your FoxUser has wordwrap turned on, you won't get the scroll bars. You can use either ShellExeucte or ! to get the document up:
! /n notepad.exe c:\myfile.txt
or
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
=ShellExecute(0,"Open", "c:\myfile.txt","","",1)