Thread: ?'s in filenames

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912

    ?'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,227
    would "help" be too ambiguous?

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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,490
    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-07-2008, 11:30 PM
  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, 10:02 AM
  4. Replies: 2
    Last Post: 04-14-2002, 01:03 PM
  5. Sequential Filenames?
    By Confused in forum C Programming
    Replies: 5
    Last Post: 11-17-2001, 12:28 PM