Menu
Recherche




Articles & Documents

Fermer Tutoriaux

Lettre d'information
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
22 Abonnés
CPDB.Net

Nouvelles des Amis
Visites

   visiteurs

   visiteurs en ligne

Webmaster - Infos
forum.gifForum - ppCompiler - Sujet n°17

Forum - Forum
ppCompiler - ppCompiler


actif  Sujet n° 17  Problem with Files

le 12/01/2010 @ 16:30
par Christian

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?
Ecrire à Christian   Site web Christian Poster une réponse  Haut

[]   

Réponse n° 1
--------
le 13/01/2010 @ 17:12
par Philippe

Anonyme

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.
Ecrire à Philippe   Poster une réponse  Haut
Réponse n° 2
--------
le 13/01/2010 @ 20:42
par Christian

Christian

visiteur

Do you have a suggestion where the problem might be? It says that memorymgr.c has got a nullpointer error. Might there be an update?

Ecrire à Christian   Site web Christian Poster une réponse  Haut
Réponse n° 3
--------
le 14/01/2010 @ 19:08
par Philippe

Anonyme

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.
Ecrire à Philippe   Poster une réponse  Haut
Réponse n° 4
--------
le 19/01/2010 @ 09:56
par Christian

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?
Ecrire à Christian   Site web Christian Poster une réponse  Haut
Réponse n° 5
--------
le 25/01/2010 @ 08:26
par Philippe

Anonyme

visiteur
reset(f,'myfile.txt');
Ecrire à Philippe   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 




^ Haut ^