Sponsored Content
Full Discussion: open ASCII files
Top Forums Programming open ASCII files Post 9452 by Wing m. Cheng on Saturday 27th of October 2001 12:54:00 AM
Old 10-27-2001
Java open ASCII files

Anyone knows how to open an ASCII file by using C

Thanks

Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can I ... (Modifying large ASCII files)

Hi Everybody! Situation: I have a large ASCII file (for example: 1-2 Mbytes) without linebreaks (\n). Task: I like inserting linebreaks after all 420 digits (byte). (pattern: *\n*\n*\n...etc.) My problem: How? :-) I like using shell script or (maybe) AWK (short) program. Please,... (2 Replies)
Discussion started by: hviktor
2 Replies

2. UNIX for Dummies Questions & Answers

ASCII Files

Can you pls help on writing ASCII files? For example, how to you put SUPPLIER NO and NAME in an ASCIIfile? (1 Reply)
Discussion started by: yialousa
1 Replies

3. UNIX for Advanced & Expert Users

viewing binary files in ASCII

Hi, How to view binary files in ASCII format.???????????????? Bye (2 Replies)
Discussion started by: manjunath
2 Replies

4. UNIX for Dummies Questions & Answers

String substitutions in ASCII files -

We need to scramble data in a number of ASCII files. Some of these files are extremely large (1.2 GB). By scrambling, I mean that we need to substitute certain strings, which number around 400, with scrambled strings. An example has been given below If "London" occurs in the file, then it... (2 Replies)
Discussion started by: SanjivNagraj
2 Replies

5. UNIX for Dummies Questions & Answers

word count ascii files

how do I display the total number of words in a file which is of the type ascii text (1 Reply)
Discussion started by: madtim
1 Replies

6. UNIX for Advanced & Expert Users

Need to convert Binary files to ascii

Dear Experts I need to read a binary file. I know for example in byte number 3801-3804 there is a 4 byte number embeded. Is there a way to extract this number from this file and then convert it to ascii via unix?? Your help would be highly appreciated. Very Best Regards Reza (5 Replies)
Discussion started by: Reza Nazarian
5 Replies

7. UNIX for Dummies Questions & Answers

Finding and using (only) ASCII files.

Hi, I had to do something I could do in a way that worked fine, but I'm still wondering if there's a shorter way (which I think there is)... I had to find only the ASCII files of a directory, and then work with them (that is, not only showing on screen) What I did was ls | xargs... (4 Replies)
Discussion started by: Casey
4 Replies

8. UNIX for Dummies Questions & Answers

From Ascii files to Excell

Hi, Is there anyway to copy a certain column from the Ascii file into a column on an Excel sheet? Thanks, (4 Replies)
Discussion started by: cosmologist
4 Replies

9. UNIX for Advanced & Expert Users

line endings help of non-ASCII files

When you are dealing with ASCII files it easy to check on line endings type. You can just use the file command. You are not always lucky enough to be dealing with ASCII files. So in the cases that you don't have ASCII files how can you check what type of line endings you have? Please list all... (5 Replies)
Discussion started by: cokedude
5 Replies

10. Solaris

Convert files from binary to ASCII

I have a huge files in binary format thanks to help me in finding a way to convert these files from Binary format to ASCII format. (0 Replies)
Discussion started by: PRINCESS_RORO
0 Replies
rmt(1M) 						  System Administration Commands						   rmt(1M)

NAME
rmt - remote magtape protocol module SYNOPSIS
/usr/sbin/rmt DESCRIPTION
rmt is a program used by the remote dump and restore programs in manipulating a magnetic tape drive through an interprocess communication connection. rmt is normally started up with an rexec(3SOCKET) or rcmd(3SOCKET) call. The rmt program accepts requests that are specific to the manipulation of magnetic tapes, performs the commands, then responds with a sta- tus indication. All responses are in ASCII and in one of two forms. Successful commands have responses of: Anumber where number is an ASCII representation of a decimal number. Unsuccessful commands are responded to with: Eerror-number error-message where error-number is one of the possible error numbers described in intro(3), and error-message is the corresponding error string as printed from a call to perror(3C). The protocol consists of the following commands: S Return the status of the open device, as obtained with a MTIOCGET ioctl call. If the operation was successful, an "ack" is sent with the size of the status buffer, then the status buffer is sent (in binary). Cdevice Close the currently open device. The device specified is ignored. Ioperation count Perform a MTIOCOP ioctl(2) command using the specified parameters. The parameters are interpreted as the ASCII rep- resentations of the decimal values to place in the mt_op and mt_count fields of the structure used in the ioctl call. When the operation is successful the return value is the count parameter. Loffset whence Perform an lseek(2) operation using the specified parameters. The response value is returned from the lseek call. Odevice mode Open the specified device using the indicated mode. device is a full pathname, and mode is an ASCII representation of a decimal number suitable for passing to open(9E). If a device is already open, it is closed before a new open is performed. Rcount Read count bytes of data from the open device. rmt performs the requested read(9E) and responds with Acount-read if the read was successful; otherwise an error in standard format is returned. If the read was successful, the data read is sent. Wcount Write data onto the open device. rmt reads count bytes from the connection, aborting if a premature EOF is encoun- tered. The response value is returned from the write(9E) call. Any other command causes rmt to exit. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWrcmdc | +-----------------------------+-----------------------------+ SEE ALSO
ufsdump(1M), ufsrestore(1M), intro(3), ioctl(2), lseek(2), perror(3C), rcmd(3SOCKET), rexec(3SOCKET), attributes(5), mtio(7I), open(9E), read(9E), write(9E) DIAGNOSTICS
All responses are of the form described above. BUGS
Do not use this for a remote file access protocol. SunOS 5.10 6 Nov 2000 rmt(1M)
All times are GMT -4. The time now is 04:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy