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.
  • C Christian Graus

    It takes VS 2008 20 seconds to start on my machine, and at least 8 seconds to compile the most basic app....

    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

    J Offline
    J Offline
    Jesus Portillo
    wrote on last edited by
    #46

    drive yourself...

    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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #47

      http://www.textpad.com but open the file in read only mode. Even in read/write mode, I've opened 16mb files before with little decrease in speed.

      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

        L Offline
        L Offline
        Lynn Wallace
        wrote on last edited by
        #48

        Can you just make the file read-only?

        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

          C Offline
          C Offline
          Chris F Carroll
          wrote on last edited by
          #49

          I'm with Don M. For reading looooooong log files you want a version of Tail http://en.wikipedia.org/wiki/Tail\_(Unix)

          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

            B Offline
            B Offline
            bahalana
            wrote on last edited by
            #50

            Notepad++ will allow opening files read-only with the '-ro' command line argument.

            P 1 Reply Last reply
            0
            • B bahalana

              Notepad++ will allow opening files read-only with the '-ro' command line argument.

              P Offline
              P Offline
              ppardo
              wrote on last edited by
              #51

              Hi, you can try something like wnbrowse, I don't like it, but I think it'll fit your needs... regards

              -- pp

              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

                P Offline
                P Offline
                patbob
                wrote on last edited by
                #52

                Cygwin "less"? It's a file viewer with navigation and string search. It has no editing features directly, but there's a way to get into the vi editor from it. It might be possible to disable that or maybe it just doesn't work if the editor isn't installed? If you had to, you might be able to get the source and disable the command for entering the editor. Less should load such a large file pretty quickly, though I don't think I've tried it on anything quite that big. Not in recent memory, anyway (I tend to use vim for viewing my large log files). Also, vim also has a read-only mode that you can specify from the command line, but I can't recall if there's any way to orderride it and write changes back to the original file. Even if you can't, you can still modify the file and write your modified copy to a different file.

                patbob

                E U 2 Replies 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

                  D Offline
                  D Offline
                  Dave Jackson 999
                  wrote on last edited by
                  #53

                  Baretail[^]

                  1 Reply Last reply
                  0
                  • P peterchen

                    Ha! haha! Muhahahahahaha! Yaaaaaa![^]

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

                    R Offline
                    R Offline
                    Richard Jones
                    wrote on last edited by
                    #54

                    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 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

                      W Offline
                      W Offline
                      was8309
                      wrote on last edited by
                      #55

                      use a browser!

                      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

                        T Offline
                        T Offline
                        Thor Johnson
                        wrote on last edited by
                        #56

                        How about something like dman nfo viewer? I haven't tried loading large things with it, but it might fit your bill.

                        T 1 Reply Last reply
                        0
                        • T Thor Johnson

                          How about something like dman nfo viewer? I haven't tried loading large things with it, but it might fit your bill.

                          T Offline
                          T Offline
                          Thor Johnson
                          wrote on last edited by
                          #57

                          Or not. 500K max. Nuts.

                          1 Reply Last reply
                          0
                          • P patbob

                            Cygwin "less"? It's a file viewer with navigation and string search. It has no editing features directly, but there's a way to get into the vi editor from it. It might be possible to disable that or maybe it just doesn't work if the editor isn't installed? If you had to, you might be able to get the source and disable the command for entering the editor. Less should load such a large file pretty quickly, though I don't think I've tried it on anything quite that big. Not in recent memory, anyway (I tend to use vim for viewing my large log files). Also, vim also has a read-only mode that you can specify from the command line, but I can't recall if there's any way to orderride it and write changes back to the original file. Even if you can't, you can still modify the file and write your modified copy to a different file.

                            patbob

                            E Offline
                            E Offline
                            earnshae
                            wrote on last edited by
                            #58

                            This may be an overly simple response, or it may not factor in you organizations security concerns which may or may not be unique. Why not just post the files some where and view them in a web browser, and disallow editing on the server end... Ie r--r--r-- permissions. I would imagine this would involve a very simple script to copy the files, and a very simple page to display a list of the files. Additionally I would make a note that a web browser can be launched from your executable as required.

                            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

                              R Offline
                              R Offline
                              rhoward
                              wrote on last edited by
                              #59

                              The one I switched to when Vern Buerg dropped the ball on a Windows version of his program "list," is called "V." You can find it at fileviewer.com, and it's very inexpensive and works very well. I've been using it for more than 15 years. Rick

                              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
                                nedmech
                                wrote on last edited by
                                #60

                                It seems like everyone is taking a much too difficult approach to answer the original post. (sorry, hadn't seen the full thread) There are, in fact, several viewer applications that will open a text file for viewing but not editing. Here's a couple: Universal Viewer Free[^] Large Text File Viewer[^] And from the same collection site, here's a couple categories that might have something else that could work for you: Text Viewers[^] and Document Viewers[^]. Hope that helps! :-D

                                1 Reply Last reply
                                0
                                • P patbob

                                  Cygwin "less"? It's a file viewer with navigation and string search. It has no editing features directly, but there's a way to get into the vi editor from it. It might be possible to disable that or maybe it just doesn't work if the editor isn't installed? If you had to, you might be able to get the source and disable the command for entering the editor. Less should load such a large file pretty quickly, though I don't think I've tried it on anything quite that big. Not in recent memory, anyway (I tend to use vim for viewing my large log files). Also, vim also has a read-only mode that you can specify from the command line, but I can't recall if there's any way to orderride it and write changes back to the original file. Even if you can't, you can still modify the file and write your modified copy to a different file.

                                  patbob

                                  U Offline
                                  U Offline
                                  Uffemand
                                  wrote on last edited by
                                  #61

                                  Any browser will read text as read only, but I have never tried on big files. If you make the directory read only for the users, but write access for the program that makes the log files, you can use any text viewer/editor. Textpad is much faster than Notepad, and it also has a useful search function plus many other features. -Ulf

                                  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

                                    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
                                          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