Latest versions
...
Menu  Language: fr
Search




Articles & Documents

Close Tutorials

Preferences

Connect again
---

Your name (or pseudo) :

Your secret code (associated with your pseudo)


 Count of members 459 members


Connected :

(nobody)
CPDB.Net

Friends News
Google Ads
Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
24 Subscribers
Webmaster - Infos
Visits

   visitors

   visitors online

Pagerank
forum.gifForum - ppCompiler [EN] - Topic #17

Forum - Forum
ppCompiler [EN] - ppCompiler [EN]


active  Topic # 17  Problem with Files

12/01/2010 @ 16:30
by 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?
Write to Christian   Web site Christian Post an answer  Top

[]   

Answer n 1
--------
13/01/2010 @ 17:12
by Philippe

Anonymous


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.
Write to Philippe   Post an answer  Top
Answer n 2
--------
13/01/2010 @ 20:42
by Christian

Christian


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?

Write to Christian   Web site Christian Post an answer  Top
Answer n 3
--------
14/01/2010 @ 19:08
by Philippe

Anonymous


Unfortunately, I have no suggestion. This is neither a question of update, nor a problem with StdioLib as the problem only occurs with files.
Write to Philippe   Post an answer  Top
Answer n 4
--------
19/01/2010 @ 09:56
by Christian

Christian


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?
Write to Christian   Web site Christian Post an answer  Top
Answer n 5
--------
25/01/2010 @ 08:26
by Philippe

Anonymous


reset(f,'myfile.txt');
Write to Philippe   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




^ Top ^