CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Learn How to Create Dual Mode Windows Services
  • XBox live shutting down for original XBox consoles
  • Windows 7 release candidate (RC) will soon expire
  • Facebook removes Microsoft banner ads

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old September 17th, 2009, 08:44 PM
    shimi1980 shimi1980 is offline
    Junior Member
     
    Join Date: Sep 2009
    Posts: 8
    shimi1980 is an unknown quantity at this point (<10)
    hi about fileviewing andthe signs the file made from

    1.)i need a c++ command which ablesme to view file like in notepad...

    2.)is there any command in c++ which ables me to run a for loop on the signs which the file i am
    viewing consist of?

    3.)if the answer for 2 is wrong where i can find the signs list a file im viewing in c++ can be
    consist from?
    Reply With Quote
      #2    
    Old September 17th, 2009, 09:12 PM
    GCDEF GCDEF is offline
    Elite Member
    Power Poster
     
    Join Date: Nov 2003
    Posts: 8,165
    GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+)
    Re: hi about fileviewing andthe signs the file made from

    You realize that doesn't make any sense at all, right?
    Reply With Quote
      #3    
    Old September 17th, 2009, 11:38 PM
    shimi1980 shimi1980 is offline
    Junior Member
     
    Join Date: Sep 2009
    Posts: 8
    shimi1980 is an unknown quantity at this point (<10)
    Re: hi about fileviewing andthe signs the file made from

    why not make any sense ...dosent c++ have a command for opening file and viewing its content in any forms?
    Reply With Quote
      #4    
    Old September 18th, 2009, 03:19 AM
    Skizmo's Avatar
    Skizmo Skizmo is offline
    Elite Member
     
    Join Date: Sep 2004
    Location: Holland (land of the dope)
    Posts: 2,820
    Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+) Skizmo is a name known to all (1000+)
    Re: hi about fileviewing andthe signs the file made from

    Quote:
    Originally Posted by shimi1980 View Post
    why not make any sense ...dosent c++ have a command for opening file and viewing its content in any forms?
    You can use CFile top read/write a file.
    Reply With Quote
      #5    
    Old September 18th, 2009, 06:53 AM
    GCDEF GCDEF is offline
    Elite Member
    Power Poster
     
    Join Date: Nov 2003
    Posts: 8,165
    GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+) GCDEF has a brilliant future (2000+)
    Re: hi about fileviewing andthe signs the file made from

    Quote:
    Originally Posted by shimi1980 View Post
    why not make any sense ...dosent c++ have a command for opening file and viewing its content in any forms?
    No

    Maybe English isn't your first language, but I've really been trying, but I can't come up with any interpretation of 2 and 3 where I have any idea what you're asking.

    Last edited by GCDEF; September 18th, 2009 at 12:58 PM.
    Reply With Quote
      #6    
    Old September 19th, 2009, 06:30 AM
    SlimGradey's Avatar
    SlimGradey SlimGradey is offline
    Member
     
    Join Date: May 2001
    Posts: 141
    SlimGradey is an unknown quantity at this point (<10)
    Re: hi about fileviewing andthe signs the file made from

    Quote:
    Originally Posted by shimi1980 View Post
    why not make any sense ...dosent c++ have a command for opening file and viewing its content in any forms?
    look up ShellExecute(...); maybe that's what you want, can use it to open files in the file's defaut app or any file in notepad / wordpad...
    if you want to open files and display in your own app, you'll need to use CFile or simular function to read in the bytes and load it in an editbox to see the data like notepad...

    hope that helps a little...
    __________________
    •SlimGradey•
    Reply With Quote
      #7    
    Old September 19th, 2009, 10:12 AM
    cilu's Avatar
    cilu cilu is offline
    Moderator/Reviewer/MS MVP
    Power Poster
     
    Join Date: Oct 2002
    Location: Timisoara, Romania
    Posts: 13,534
    cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+) cilu has a reputation beyond repute (3000+)
    Re: hi about fileviewing andthe signs the file made from

    Quote:
    2.)is there any command in c++ which ables me to run a for loop on the signs which the file i am
    viewing consist of?
    What do you mean with "signs"? That is the part that doesn't make sense. Furthermore, C++ does not have "commands". So you have to re-explain what you want to do.
    __________________
    Marius Bancila
    Home Page | Blog
    My CodeGuru articles

    My latest articles: A TR1 Tutorial: array, tuple, unordered containers, random number generators, regex, smart pointers
    Customizable alert window

    Try my VSBuildStatus add-in for Visual Studio 2005, 2008 & 2010 (v1.1).
    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 05:52 AM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.