11-28-2003
Opening files
I am very new to unix. I want to open a file and read one line in at a time. Can anybody help?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm a new to UNIX/LINUX. I just put cygwin on my laptop and I can navigate around the directories, but I can't open files (.doc, .ppt, .html or .exe). Is there an explicit command to do this? I know that in Solaris when it does not recognize the file, it brings up the list of available viewing... (4 Replies)
Discussion started by: AJA
4 Replies
2. UNIX for Dummies Questions & Answers
when i try to open a txt file in lynx I need to provide the filename or use wildcards to open. Autocompletion doesn't work for some reason.
Also, trying to open files like: .sh, .py etc. ends up in the following error:
lynx: Start file could not be found or is not text/html or text/plain ... (0 Replies)
Discussion started by: riwa
0 Replies
3. UNIX for Dummies Questions & Answers
Is there any other way to open a file in append mode without using C calls or >> redirection? (1 Reply)
Discussion started by: vidhya
1 Replies
4. Shell Programming and Scripting
Hi have set a command line argument where the user enters the filename.
I have set a condition that if the command line is null (user just enters return), the script will exit (with an error message).
However, what if the user types something and the file isn't found. How will I go about... (20 Replies)
Discussion started by: Cactus Jack
20 Replies
5. Shell Programming and Scripting
I tried opening the files in a directory and print thier names.
But it was thowing the error "unable to open directorty at t5.pl line 2."
Can u plz correct this error in below mentioned code.
#!/data/scoredev/perl
opendir(HOMEDIR,"c:\vin") || die("unable to open directorty");... (3 Replies)
Discussion started by: vinay123
3 Replies
6. Shell Programming and Scripting
Hi All,
I need some expert help in performing the following in Perl.
I have a code below but it doesn;t seem to work. Can any expert give me some advice?
Below are the requirements
1) Open numerous files assigned to an array @FILES. Note that the files are always named with the term... (7 Replies)
Discussion started by: Raynon
7 Replies
7. Web Development
Im aware under IE, javascript uses ActiveX Objects to open up and manipulate text files, excel files etc..
How abouts would I open a text file using javascript in Firefox ?
thanks (1 Reply)
Discussion started by: JamesGoh
1 Replies
8. Shell Programming and Scripting
Good morning guys!!
Im still practicing with Perl and now Im trying to open a file, and copy its contents to another file. Them I want to remeove the information out of the orginal file after it is copied over.
The flow should be messages-->messages1-->messages2.
Kind of like a log... (1 Reply)
Discussion started by: bigben1220
1 Replies
9. Programming
In C, given a name or path to a file, how do I check if the path is valid, and how can I check its permisions will let me read from it, and how do i check if its an empty file? (15 Replies)
Discussion started by: omega666
15 Replies
10. Shell Programming and Scripting
Hello,
I wrote a simple script, that basically wait for a *.dat-file in a certain folder, which is always a zipped file and extracts it.
It worked before and i changed nothing in the script, but since last week i have the problem, that it doesnt extract files containing a space. How do i make... (4 Replies)
Discussion started by: blend_in
4 Replies
LEARN ABOUT OPENSOLARIS
gnome-open
gnome-open(1) User Commands gnome-open(1)
NAME
gnome-open - open a file using the appropriate application
SYNOPSIS
gnome-open [gnome-std-options] URL
DESCRIPTION
gnome-open opens a file from the command line by launching the appropriate application that is associated with the file mime type.
OPTIONS
The following options are supported:
gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
OPERANDS
The following operands are supported:
URL Specifies the name of the URL to open.
EXAMPLES
Example 1: Opening a Text File in the Home Directory
example% gnome-open README.txt
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: NLSPATH.
EXIT STATUS
The exit value 0 is returned regardless of success or failure.
FILES
The following files are used by this application:
/usr/bin/gnome-open Executable to open a file using the appropriate application
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-libs |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform.
attributes(5), environ(5), gnome-std-options(5)
NOTES
Written by Stephen Browne, Sun Microsystems Inc., 2004.
SunOS 5.11 6 Sep 2004 gnome-open(1)