Thread: Saving Linked List

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    A single backslash signifies escape to use a backslash in a literal you must use two backslashes:
    Code:
    fp = fopen("D:\\junk.txt", "w+");
    I am unaware of any file system where "D:junk.txt" is a valid filename. (EDIT: What am I thinking? It is valid on linux; don't know why I thought colon was a reserved character. However, I suspect you're not on a *nix system, so you will need a slash or two.)
    Actually that could be a valid file name in a Windows command shell as well.

    Jim
    Last edited by jimblumberg; 06-14-2011 at 11:42 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linked List Not Saving Value as Int
    By bar338 in forum C Programming
    Replies: 4
    Last Post: 05-04-2009, 07:53 PM
  2. single linked list to double linked list (help)
    By Countfog in forum C Programming
    Replies: 8
    Last Post: 04-29-2008, 08:04 PM
  3. singly linked list to doubly linked list
    By t48j in forum C Programming
    Replies: 3
    Last Post: 03-23-2005, 06:37 PM
  4. Replies: 6
    Last Post: 03-02-2005, 02:45 AM
  5. Saving and Loading Linked Lists With File i/o
    By Red Army in forum C++ Programming
    Replies: 8
    Last Post: 05-15-2002, 03:19 PM