Hi,
Im my application I need to open a file to read and write some data.
If the file I'm trying to open doesn't exist I have to create it. I'm
using fstream to handle the files. But i am not able to create a file
(by opening a file for write). I have permission to write in the
directory, because i am executing the program as root. So, I tried to
create a file into terminal by typing "pico config.con". The editor
opens, but an error message appears "Segmentation fault". Then I tried
to create a file by typing "touch config.con" and file was succesfully
created, but when I try to edit it by typing "pico config.con" the
error appears again ("Segmentation fault"). The error occurs when I
try to edit an empty file. If I open an existing file and I delete its
characters, when I delete the last one the same error appears again
("Segmentation fault").
I really don't know what is going on. Could someone give me a hand?
Thanks,
Daniel Souza
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|