LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2008, 04:53 PM   #1
raphtor
Member
 
Registered: Aug 2008
Location: india
Posts: 174

Rep: Reputation: 30
reading text files


hi i use gutsy.whenever i copy some commands or notes from net,save them in a document and try to read them later,i cannot open them.it reads
this file is executable file.do u want to display contents
open in terminal cancel display.
 
Old 09-12-2008, 05:12 PM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 14.2 Solus
Posts: 2,264

Rep: Reputation: 51
Display contents means just that, you can read it.

Sounds like you're not saving them in the correct format or with the wrong permissions.
 
Old 09-13-2008, 01:06 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
It would help if you posted exact error messages and the way in which you're actually trying to open the files.
 
Old 09-13-2008, 01:41 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Yes, it's a file permission problem. If you right-click the file and look at permissions, you should see that "execute as program" is checked. Uncheck it and it will work. If you need to do this for a batch of files, you can use chmod a-x *

Last edited by jay73; 09-13-2008 at 01:42 AM.
 
  


Reply


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
Convert DOS text files to UNIX text files ta0kira Linux - Software 7 03-15-2011 11:42 AM
How to store text(strings) in a 2D character array reading from a text file(C++) bewidankit Programming 3 02-14-2008 07:08 AM
Reading Large Text File in C++ maheshrajn Programming 6 03-04-2006 08:54 AM
reading text from a file mrobertson Programming 16 06-28-2005 12:39 PM
Reading text problems with C NCC-1701&NCC-1701-D Programming 4 06-28-2005 06:33 AM


All times are GMT -5. The time now is 02:33 AM.

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