Thread: How to save a source code file in DOS.

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    5

    Question How to save a source code file in DOS.

    I wrote "edit" at the C promt,this opened up my editor,then I wrote my program.
    But I do know how to save this file in DOS.
    Sorry for this stupid question, would be very obliged for the help,
    humbly,
    Csick
    Last edited by csick; 01-24-2002 at 09:05 AM.

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    im intrigued to know why you are writing it in dos anyway but
    .... your editor should have the save command, press ALT then F to bring up the file menu - on there you should see save
    Monday - what a way to spend a seventh of your life

  3. #3
    The Artful Lurker Deckard's Avatar
    Join Date
    Jan 2002
    Posts
    633
    A little off-topic, but I feel your pain

    Try pressing ALT-F (for file menu), and then press A (for Save As). You will then be given the opportunity to name your new file.
    Jason Deckard

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    5
    Thanks for your comments,I have saved my file.Though I have another problem at hand.Once I am back at the C promt,I am having problem compiling my file.Pls advise how I could compile,link and execute this file(test.c)

    To IAIN:Sir thanks for your question,I am very new to computers,so I do not know what is right and wrong.I have a linux compiler ,a windows compiler(Miracle C-I down loaded it from CNET) and on my Win2000 computer I just loaded a DGJPP compiler-I could only find DGJPP on the DOS promt(when I did DIR) but I could not find it on my win2000-Is it possible to run DGJPP compiler in Win2000?Pls advise.

    Thanks in advance.
    csick

  5. #5
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Most compilers should also link the file for you. The way you get it to compile is dependant on the compiler you want to use.

  6. #6
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    ok - if you have a windows 2000 machine i suggest coding with that at first. go to www.bloodshed.net and download devc++
    version 5 ( i think) this has a basic editor and you can compile and link by pushing a menu button

    if you cant find that url (it is an old one_ go to www.cnet.com and search for devC++


    hope this helps amd welcome to the board
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Totally confused on assigment using linked lists
    By Uchihanokonoha in forum C++ Programming
    Replies: 8
    Last Post: 01-05-2008, 04:49 PM
  2. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  3. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM