Opening text file

This is a discussion on Opening text file within the C Programming forums, part of the General Programming Boards category; Could someone tell me how to open a text file in notepad, without using the system() command?...

  1. #1
    Registered User zdude's Avatar
    Join Date
    Sep 2002
    Posts
    32

    Opening text file

    Could someone tell me how to open a text file in notepad, without using the system() command?
    Those who live by the sword get shot by those who don't.

    I can C.

    Compiler: gcc

  2. #2
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680

  3. #3
    Registered User zdude's Avatar
    Join Date
    Sep 2002
    Posts
    32
    I tried that before I asked, i only think it works with exes.
    Those who live by the sword get shot by those who don't.

    I can C.

    Compiler: gcc

  4. #4
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680
    So it should work:

    spawnl(P_WAIT, "notepad.exe", "notepad.exe", "C:\\temp\\test.txt", NULL);

    Did not test this...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  2. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM

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