Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Text Viewer

Text Viewer

Scheduled Pinned Locked Moved The Lounge
76 Posts 45 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Bram van Kampen

    Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

    Bram van Kampen

    B Offline
    B Offline
    Brad Tumer
    wrote on last edited by
    #62

    "cat" or "type" depending on OS.

    1 Reply Last reply
    0
    • L Lost User

      Bram van Kampen wrote:

      When we started writing in 1995, MFC was Free

      With 15+ years of windows GUI development you should be able to knock up a text viewer quicker than you can knock up your wife.

      L Offline
      L Offline
      LetMeFinclOut
      wrote on last edited by
      #63

      Josh Gray wrote:

      With 15+ years of windows GUI development you should be able to knock up a text viewer quicker than you can knock up your wife.

      :laugh: :thumbsup:

      1 Reply Last reply
      0
      • B Bram van Kampen

        Christian Graus wrote:

        Is the 32757 line limit a major issue ? Because the rest seems easy to deal with. Just don't make it read only, but write code to reject all keypresses.

        Yes, it is! We have Basic Log Files, which record transactions in ASCII, and which would cover up to six years of trading. The biggest sofar contans 425,000 lines. it is not accessed very frequently, but, the concern is that we have no tool to access it which disallows modification. Notepad loads it Sofar No Problems, it Takes a Long Time, No Problem, but it facilitates modification.

        Bram van Kampen

        N Offline
        N Offline
        NoelWalker
        wrote on last edited by
        #64

        Use the RichTextBox control in VS and make it ReadOnly this will load very large text files for viewing only..

        1 Reply Last reply
        0
        • R Richard Jones

          I'm guessing there is a setting somewhere to show > 4 last projects.

          "The activity of 'debugging', or removing bugs from a program, ends when people get tired of doing it, not when the bugs are removed." - "Datamation", January 15, 1984

          P Offline
          P Offline
          peterchen
          wrote on last edited by
          #65

          Yeah there is. The plan was to throw in the necessary cleanup, allow "pinning" projects etc. I hoped that with HTML as layout engine, some javascript with access to DTE, ShellExecute and environment variables, I could throw together a decent start page replacement. However, reality is that this is a pain - everything is just incomplete and requires tons of extra work. Not sure if it's worht following through with it - but at least I learnt a tinyl little bit of Javascript, and cleaned up some libraries.

          Agh! Reality! My Archnemesis![^]
          | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

          1 Reply Last reply
          0
          • B Bram van Kampen

            Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

            Bram van Kampen

            K Offline
            K Offline
            Kent Bolton QK
            wrote on last edited by
            #66

            Have you tried a browser ? IE / Firefox / opera / etc.

            1 Reply Last reply
            0
            • B Bram van Kampen

              Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

              Bram van Kampen

              N Offline
              N Offline
              Naruki 0
              wrote on last edited by
              #67

              The view button (F3) launches the internal viewer (called Lister) on whatever file is highlighted. Not only is it lightning fast, but you get the benefit of having Total Commander, the best thing since sliced folder managers. But if you hate having all that power and convenience, they also offer the Lister as an external file, no installation needed. The viewer does not allow editing, but it is somewhat configurable and it even allows integration with the IrfanView plugin if you want to see images. http://www.ghisler.com/[^] Or go directly to lister: http://www.ghisler.com/lister/[^]

              Narf.

              1 Reply Last reply
              0
              • B Bram van Kampen

                Hi,

                Christian Graus wrote:

                No, but I am sure it would take about 30 seconds to write one.

                Well I thought that, until I tried. The CEdit Control turns Gray if you make it 'Read Only', and limits to 32757 lines. Try a ListBox instead, and you are limited to 32757 lines, and you have to implement the Edit\Copy Interface and Selection Interface yourself. Notepad has None of these limitations, but allows a User to Modify and save. Googeling the question results in solutions which pride themsevelves in advanced Editing features, exactly what I Do NOT want! Hence the Question. Regards, :)

                Bram van Kampen

                R Offline
                R Offline
                RodClark
                wrote on last edited by
                #68

                Web browser? Most can load text files and can't edit... Could load 'IE' from a custom VS program if you didn't need/want the UI. Rod

                1 Reply Last reply
                0
                • B Bram van Kampen

                  Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

                  Bram van Kampen

                  P Offline
                  P Offline
                  Pete Appleton
                  wrote on last edited by
                  #69

                  less is excellent, although it's text mode only - it has great searching, multi-file support, arbitrary length files and so on - http://sourceforge.net/projects/gnuwin32/files/less/[^], although that seems quite old (I'm using v429) and there may well be more recent ports Standard *nix util :)

                  -- What's a signature?

                  1 Reply Last reply
                  0
                  • B Bram van Kampen

                    Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

                    Bram van Kampen

                    M Offline
                    M Offline
                    Member 2053006
                    wrote on last edited by
                    #70

                    Is the 'more' command too basic? :)

                    1 Reply Last reply
                    0
                    • H hsidhu

                      open command prompt type :laugh:

                      G Offline
                      G Offline
                      ghle
                      wrote on last edited by
                      #71

                      type <filename> | more

                      Gary

                      1 Reply Last reply
                      0
                      • B Bram van Kampen

                        Christian Graus wrote:

                        Is the 32757 line limit a major issue ? Because the rest seems easy to deal with. Just don't make it read only, but write code to reject all keypresses.

                        Yes, it is! We have Basic Log Files, which record transactions in ASCII, and which would cover up to six years of trading. The biggest sofar contans 425,000 lines. it is not accessed very frequently, but, the concern is that we have no tool to access it which disallows modification. Notepad loads it Sofar No Problems, it Takes a Long Time, No Problem, but it facilitates modification.

                        Bram van Kampen

                        S Offline
                        S Offline
                        svvampy
                        wrote on last edited by
                        #72

                        I think file access permissions as suggested by others should solve your problems, but if you need a viewer you could try internet explorer. I use it for log files via: 'explorer path_to_logfile.txt'. An additional benefit is for live log files you can hit the refresh button to update the logfile and see what's changed. As an aside, I'm not sure why that command launches IE, I'm running XP and the TXT file associations don't refer to IE. If I try 'start path_to_logfile.txt' I get the file opened in notepad, which is the Open file association.

                        1 Reply Last reply
                        0
                        • B Bram van Kampen

                          Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

                          Bram van Kampen

                          J Offline
                          J Offline
                          Jason Christian
                          wrote on last edited by
                          #73

                          LTFViewer (Large Text File Viewer) allows opening of text files (including Multi-GB text files, hence the Large) but not editing. Great for log files, data dumps etc. Bonus - it's free.

                          1 Reply Last reply
                          0
                          • B Bram van Kampen

                            Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

                            Bram van Kampen

                            P Offline
                            P Offline
                            pashkevich
                            wrote on last edited by
                            #74

                            Total Commander has a wonderful text viewer. It loads file of any size in milliseconds, allows search and fast scrolling, doesn't allow editing/saving. The only problem might be that the viewer is not a standalone application, it's a part of a Total Commander application.

                            N 1 Reply Last reply
                            0
                            • P pashkevich

                              Total Commander has a wonderful text viewer. It loads file of any size in milliseconds, allows search and fast scrolling, doesn't allow editing/saving. The only problem might be that the viewer is not a standalone application, it's a part of a Total Commander application.

                              N Offline
                              N Offline
                              Naruki 0
                              wrote on last edited by
                              #75

                              You missed my comment. That's not a problem. The Lister is available as a standalone.

                              Narf.

                              1 Reply Last reply
                              0
                              • B Bram van Kampen

                                Hi, Does anyone know of a Text Viewer, (for basic .txt Files) which does NOT facilitate editing or Saving. :)

                                Bram van Kampen

                                J Offline
                                J Offline
                                James Lonero
                                wrote on last edited by
                                #76

                                Do a search for Text Browser. I found one called: Lynx Text Browser. At one time, a browser was just what you wanted. Not an editor, but just a non-user input viewer.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups