Read / Write Operation under Windows CE lazarus / 35-Windows CE ---------------------------------------------------------------------- kickbit · 2010-01-26 12:31 Hello! I have build a small application for my WinCE device. The App is working fine, but now I want to read / write to a textfile on the SD card inside my system. I tried to use AssignFile, Reset,Write,Writeln,... but it doesn't work. The app hangs after such operation. Has anyone an idea and can help me with that? Thanks in advance   K.F. ---------------------------------------------------------------------- theo · 2010-01-26 13:14 Almost impossible to say without information. ;-) Have you tried using a StringList instead? like: Code: [Select]var sl:TStringList; begin sl:=TStringList.Create; sl.LoadFromFile('AFileName'); sl.SaveToFile('AnotherFileName'); sl.free; end; Or Memo1.Lines.LoadFromFile(..); ---------------------------------------------------------------------- kickbit · 2010-01-26 13:58 Hello! Yes, I have tried both examples, and both didn't work. What infos do you need which could help solving this problem? I really have no idea why this doesn't work and haven't found a tip in the internet. Can you help? Best regards   Kay Foerster ---------------------------------------------------------------------- theo · 2010-01-26 14:05 Quote from: kickbit on January 26, 2010, 02:58:34 pmCan you help? I don't think so. I'm not an expert for WinCE ---------------------------------------------------------------------- Zaher · 2010-01-26 15:20 Try to add the full path to your filename because Wince have no currect directory. ---------------------------------------------------------------------- kickbit · 2010-01-26 15:32 Now a really stupid question!!! How does a full path look like? Is there a C: or D: in WinCE? Does a path look like this: /data/mytext.txt or c:\data\mytext.txt Thanks for your help    K.F. ---------------------------------------------------------------------- Zaher · 2010-01-26 16:07 Without C: or D: just \ \data\mytext.txt but you can make relative path from you exe file s := Application.Location + 'mytext.txt'; or s := Application.Location + '..\data\mytext.txt'; ---------------------------------------------------------------------- kickbit · 2010-01-27 05:02 Thank you, I will try it this afternoon and let you know if it works! Best regards    K.F. ---------------------------------------------------------------------- kickbit · 2010-01-29 14:23 Great, it worked!  Thanks   K.F.