?'s in filenames

This is a discussion on ?'s in filenames within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I know that if you delete a file called file.txt, it become ?ile.txt. What if you have file?.txt Will that ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    ?'s in filenames

    I know that if you delete a file called file.txt, it become ?ile.txt. What if you have file?.txt Will that be treated as a deleted file? Will I be able to access it through an HTML hyperlink? The actually filename (although I doubt you'll need it is CGIASM?.html. I was trying to match all the HTML files with the instruction to do their purpose in DEBUG (this is my assembler project). For example, to load a file. I would have CGIASMn.html or CGIASMl.html. Probably the latter, but thats what I'm trying to do. CGIASM?.html will be the general information page. If I can't use that, any suggestions of what I could use in place? (? is the command for help in DEBUG)

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    would "help" be too ambiguous?

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    But then it's not consistent! I'm a perfecionist like that. And I hate creativity, notice on my site when it's finished - it's all black and white. And when getting stuff from the drug store (or for the non-Americans, I'm talking to a Chemist, not a junky with dark sunglasses and a field covered in camoflauge netting), I get the generic, and not sutff like 'Tylenol', or 'Triaminic'. If I want asprin I get asprin!

  4. #4
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    in the old days of dos, when a file was deleted, its first letter was simply renamed to a special delete value and allowed programs to write that space. undelete worked by looking over that space and, in the event that nothing overwrote the space, recover it. of course, the first letter was gone, but that wasn't too bad...

    my concern over using question marks in a file name isn't about deleting stuff. it should be safe there. but the question mark in dos is a wild-card key. (ie: f??st.txt returns first.txt or faust.exe). it might break your code later down the line.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Variable filenames
    By cwmccart in forum C Programming
    Replies: 3
    Last Post: 08-08-2008, 12:30 AM
  2. Getting filenames from a file
    By vinsta18 in forum C++ Programming
    Replies: 1
    Last Post: 01-12-2005, 11:52 AM
  3. reading filenames
    By Paul in forum C++ Programming
    Replies: 1
    Last Post: 07-01-2003, 11:02 AM
  4. Replies: 2
    Last Post: 04-14-2002, 02:03 PM
  5. Sequential Filenames?
    By Confused in forum C Programming
    Replies: 5
    Last Post: 11-17-2001, 12:28 PM

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