Program that loads a txt file and rewrites it?

This is a discussion on Program that loads a txt file and rewrites it? within the C++ Programming forums, part of the General Programming Boards category; Well, i have tried for days to make one but I simply can't make it work. I need a program ...

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    3

    Program that loads a txt file and rewrites it?

    Well, i have tried for days to make one but I simply can't make it work.
    I need a program that loads/reads a txt (max 500 characters or something) and then hooks to the keyboard (which is a standard one) and retypes all known letters (A-Z, a-z, 0-1, special signs like comma and ()) quickly.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,170
    Why do you want to do this?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Aug 2012
    Posts
    3
    Quote Originally Posted by laserlight View Post
    Why do you want to do this?
    I have a code written in a txt file and i need to retype it into an application which apparently doesn't support copy/paste (an emulated MS-Dos program)

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,170
    You should be able to use input re-direction at the command prompt, e.g.,
    Code:
    application < input.txt
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Aug 2012
    Posts
    3
    Quote Originally Posted by laserlight View Post
    You should be able to use input re-direction at the command prompt, e.g.,
    Code:
    application < input.txt
    Yes, i thought of that but the problem is that the txt file is on the machine itself and the application is in a virtual machine (oracle virtual machine) which is like an OS inside my OS

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,170
    Quote Originally Posted by Spavid04
    Yes, i thought of that but the problem is that the txt file is on the machine itself and the application is in a virtual machine (oracle virtual machine) which is like an OS inside my OS
    Then copy the text file to the virtual machine. You don't need to write a C++ program to do that.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. loads of linker errors, and I only tried to clean up D:
    By Akkernight in forum C++ Programming
    Replies: 6
    Last Post: 02-23-2009, 12:15 PM
  2. Replies: 5
    Last Post: 04-09-2008, 02:36 PM
  3. Bitmap loads OK, but not from resource
    By knutso in forum Windows Programming
    Replies: 6
    Last Post: 10-13-2003, 12:05 PM
  4. No image link loads
    By extrix in forum Tech Board
    Replies: 5
    Last Post: 04-06-2003, 03:34 PM
  5. Program that loads the .exe?
    By Sebastiani in forum C Programming
    Replies: 4
    Last Post: 07-26-2002, 02:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21