CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Print

  1. #1
    Join Date
    Apr 1999
    Posts
    15

    Print

    Hi ppl,
    How do u write to a file, call the particular file n then print out the contents of the file in visual c++???
    Thanks! :-)


  2. #2
    Join Date
    May 1999
    Posts
    7

    Re: Print

    If you make a console application:
    you can use the functions fopen (to open a file for writing) ,
    fread,or fscanf , or others (to read a file) , and printf ,or others,
    to display the file content to screen .

    If you make a windows application , to display the file content to
    window client area you can use (for example) the API function TextOut .


  3. #3
    Join Date
    Apr 1999
    Posts
    15

    Re: Print

    Oops i think u got me all wrong. What i meant was how to write information which are not codes into a text file and print out the content of the particular text file which i have already written.i particularly interested in how to call the text file.
    thanks again! :-)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured