Menu
Search




Articles & Documents

Close Tutorials

Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
22 Subscribers
CPDB.Net

Friends News
Visits

   visitors

   visitors online

Webmaster - Infos
forum.gifForum - ppCompiler - Topic #17

Forum - Forum
ppCompiler - ppCompiler


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   Website Christian Post an answer  Top

[]   

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

Anonymous

visitor
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

visitor

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   Website Christian Post an answer  Top
Answer n° 3
--------
14/01/2010 @ 19:08
by Philippe

Anonymous

visitor
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

visitor
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   Website Christian Post an answer  Top
Answer n° 5
--------
25/01/2010 @ 08:26
by Philippe

Anonymous

visitor
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 ^