Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Debug child process Pin
Iain Clarke, Warrior Programmer13-Oct-08 18:13
Iain Clarke, Warrior Programmer13-Oct-08 18:13 
QuestionCan i simplify this data structure? Pin
york12222222222212-Oct-08 17:45
york12222222222212-Oct-08 17:45 
QuestionRe: Can i simplify this data structure? Pin
led mike12-Oct-08 17:54
led mike12-Oct-08 17:54 
QuestionPattern decoder Pin
hdsouza112-Oct-08 17:42
hdsouza112-Oct-08 17:42 
AnswerCross Posted and probably homework Pin
led mike12-Oct-08 17:57
led mike12-Oct-08 17:57 
GeneralRe: Cross Posted and probably homework Pin
hdsouza113-Oct-08 3:30
hdsouza113-Oct-08 3:30 
GeneralRe: Cross Posted and probably homework Pin
led mike13-Oct-08 6:28
led mike13-Oct-08 6:28 
QuestionCreating files with Python-- I know it's in the wrong place: please don't shoot. Pin
GeekLynx12-Oct-08 16:21
GeekLynx12-Oct-08 16:21 
Disclaimer: I know this is the C++ forum but I didn't see a general programming questions forum. I looked, and if I overlooked it, I do apologize. Also, I imagine this would be a subtle bug-type thing, but that forum said not to post questions. My reasoning for placing this question here: there was nowhere else for it to go and if I had a choice, I'd be doing it in C++ anyway...

Enough begging for my life, I suppose. My issue is that I'm trying to create a file and it just won't happen. I keep getting an error saying "No such file or directory exists". (Another excuse: this has happened to me (and classmates) before using C; it got to the point where anytime we had an assignment where we wrote to a file, we were to create it in advance.) The bad thing is everywhere I search, the tutorials say that the file will be created if it doesn't exist. It's not happening. I do admit that it did work a couple of times in IDLE but it seems as though the command works when it wants: if I copy the open(filename) or file(filename) command that worked earlier and try to run it again, I will get that same error.
Even more frustrating, if it works in IDLE and then I try to run the same command as part of the routine I'm running, I get the error message again!
I'm at my wit's end-- I've done it the way everyone says to, and I've tried feeding both commands filenames and entire paths. It just seems like it'll only work when it's in the mood to.

Can anyone think of some stupid condition that may be affecting Python's ability to create files? (I need permanent files, not temporary ones).

Again, I'm sorry to put this in such a strange place, but I'm all alone in this at the moment and I've been working on this one problem for days. It's halting my progress...

Thanks for not biting my head off (hopefully!)
G-Lynx
QuestionNew user, student, homework, wrong forum Pin
led mike12-Oct-08 18:03
led mike12-Oct-08 18:03 
AnswerRe: New user, student, homework, wrong forum Pin
GeekLynx13-Oct-08 4:14
GeekLynx13-Oct-08 4:14 
QuestionRe: New user, student, homework, wrong forum Pin
led mike13-Oct-08 6:25
led mike13-Oct-08 6:25 
AnswerRe: New user, student, homework, wrong forum Pin
GeekLynx13-Oct-08 7:16
GeekLynx13-Oct-08 7:16 
GeneralRe: New user, student, homework, wrong forum Pin
led mike13-Oct-08 7:59
led mike13-Oct-08 7:59 
Generalmike, why are you so doggone aggressive? Pin
GeekLynx13-Oct-08 17:00
GeekLynx13-Oct-08 17:00 
GeneralRe: mike, why are you so doggone aggressive? Pin
enhzflep13-Oct-08 17:41
enhzflep13-Oct-08 17:41 
QuestionWizard code and menu command handling problem Pin
M_SliN12-Oct-08 15:18
M_SliN12-Oct-08 15:18 
QuestionComboBox not Opening Pin
Bram van Kampen12-Oct-08 10:29
Bram van Kampen12-Oct-08 10:29 
AnswerRe: ComboBox not Opening Pin
Mark Salsbery12-Oct-08 11:10
Mark Salsbery12-Oct-08 11:10 
AnswerRe: ComboBox not Opening Pin
Bram van Kampen12-Oct-08 13:35
Bram van Kampen12-Oct-08 13:35 
GeneralRe: ComboBox not Opening Pin
Mark Salsbery12-Oct-08 13:40
Mark Salsbery12-Oct-08 13:40 
GeneralRe: ComboBox not Opening Pin
Bram van Kampen12-Oct-08 14:00
Bram van Kampen12-Oct-08 14:00 
GeneralRe: ComboBox not Opening Pin
Bram van Kampen12-Oct-08 15:18
Bram van Kampen12-Oct-08 15:18 
GeneralRe: ComboBox not Opening Pin
Mark Salsbery12-Oct-08 18:07
Mark Salsbery12-Oct-08 18:07 
GeneralRe: ComboBox not Opening Pin
Bram van Kampen12-Oct-08 22:08
Bram van Kampen12-Oct-08 22:08 
AnswerRe: ComboBox not Opening Pin
Roger Allen13-Oct-08 1:41
Roger Allen13-Oct-08 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.