Recherche
Articles & Documents
Tutoriaux
Lettre d'information
CPDB.Net
Nouvelles des Amis
Visites
Webmaster - Infos
|
- Forum - ppCompiler
Sujet n° 17 |
Problem with Files |
le 12/01/2010 @ 16:30 par Christian
|
Hey Guyz,
I own a Tungsten E2 and I was going to try out PP. It all worked out fine, i'm using Piaf and all the Stuff I need. But now, when I was playing around with files, i had a Problem:
Code:
Code :
var:
f: file of string
begin
rewrite (f, 'myfile.txt');
write(f, 'Hello');
close(f);
end.
This Program results with the following crash (Yes, it kills my whole Palm):
MemoryMgr.c, Line:3732, Null Handle.
Could you help me, please? |
|
|
Réponse n° 1 -------- le 13/01/2010 @ 17:12 par Philippe
visiteur |
After syntax and typo fixes, your program runs on my TX. I know that this answer does not satisfy you, but it suggests that the problem may be elsewhere. |
|
|
Réponse n° 3 -------- le 14/01/2010 @ 19:08 par Philippe
visiteur |
Unfortunately, I have no suggestion. This is neither a question of update, nor a problem with StdioLib as the problem only occurs with files. |
|
|
Réponse n° 4 -------- le 19/01/2010 @ 09:56 par Christian
visiteur |
I have found a solution for writing files, but now i have another question: how do i read files? The solution i found on an tutorial doesn' t work, because the "Assign"-Command apparently doesn' t exist. Is there any "OpenFile" command? |
|
|
Réponse n° 5 -------- le 25/01/2010 @ 08:26 par Philippe
visiteur |
reset(f,'myfile.txt'); |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|