Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-02-2005, 03:44 AM   #1
Registered: Jun 2005
Location: Thornton, Colorado
Distribution: Debian 4, Ubuntu 9.04
Posts: 38

Rep: Reputation: 15
code creation problem

Yes this my seem like an obvious answer to some, but for some reason this has dumbfounded me. I have just started writing code on linux.

Everytime i create a new code document in vi or gedit, then go to save my work after i am completed, the two editors give me errors and won't let me make any progress. vi says "file does not exist" and gedit just says that it produced an error and i'm guessing its along the same lines as with the case in vi. How can i create code?? I have no idea whats going on.
Old 09-02-2005, 04:37 AM   #2
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Rep: Reputation: 15
very stupid answer: have you tried to change text editor? try emacs, or some of the k{edit,write,ate} if you use kde.
have you also tried to edit and save a file that is already created? For example:

user@hostname: ~$ touch new_file_name.c
user@hostname: ~$ vi new_file_name.c


user@hostname: ~$ echo "this is a test" > new_file_name.c
user@hostname: ~$ gedit new_file_name.c

and so on. Maybe there are problems in file creation.
Old 09-03-2005, 03:16 AM   #3
Registered: Jun 2005
Location: Thornton, Colorado
Distribution: Debian 4, Ubuntu 9.04
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks a lot, the touch util worked great. Baby steps...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
small syntax problem with C code (implemented in Code Composer Studio) illiniguy3043 Programming 6 01-07-2008 03:14 AM
initrd creation problem loadlinux Red Hat 1 06-02-2005 03:09 PM
package creation problem Rognon Slackware 8 03-28-2005 05:56 PM
problem in user creation skvasistha Linux - Software 2 11-27-2004 06:50 AM
strange file creation problem dizzutch Programming 1 10-06-2004 06:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration