Question about Computers & Internet

1 Answer

Files, streams, and linked lists

If I print the content of a file, how will i write it back to the file or to a file specified by the user?

Posted by on

  • Martin Wood
    Martin Wood May 11, 2010

    Please elaborate. are you wanting to print something and scan it back in. or are you printing to a piped output, ie in a batchfile of other laguage. are you doing something whereby the user needs to imput some data.

×

Ad

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Brigadier General:

    An expert that has over 10,000 points.

  • Master
  • 10,406 Answers

The general rule is "never write back to the source file".

Otherwise, find an upper-class student to help give you a one-on-one tutorial to help you with your homework.

Posted on Dec 03, 2009

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this issue over the phone in a minute or two.

Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

Here's a link to this great service

Good luck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Does MFF Allow Online Users to Retain Online After the Switch Restarts?


In V100R006 and later versions, whenboth MFF and DHCP snooping are enabled, you can use the dhcp snooping user-bind autosave file-name command to back up DHCP snooping binding entries in a specified file. This configuration allows online users to retain online after the switch restarts. Note that the backup file saves only the first gateway address of users.
S5700 Switch Thunder link com

Oct 28, 2016 | Electrical Supplies

Tip

[Linux] How to create a List of files in a directory with neccssary fields


OS: Any Linux / Unix Systems
Purpose : To create a text file containing a list of contents of a directory in specific manner.
Mode of Operation: Command Line Interface
#################################################################

hi...

We often need to create List of contents in a directory, such as , for a Personal Work Logs where each entry represents the activity on a specific day.

We can create File list quickly and easily in Linux and use it to find specific files quickly.

Though there are several methods and several commands , we only focus on easy way , which need to use two commands - cd , ls
cd - [Change Directory] changes the current working directory to specified directory.
USAGE: cd
For more details, Type " man cd " on Terminal or visit here

ls - [LiSt] This command lists the contents. This command supports many options which will customize the output
USAGE: ls
For More Details , Type " man ls " on Terminal or visit here

##############################################################
STEPS

  1. First we need to open a Terminal ( Shell / Bash ).
    You can find shortcut to execute Terminal in Application Menu.
    In Ubuntu shortcut to open terminal is [Ctrl] + [Alt] + [T] or press [Alt] + [F2] to open Run and type " gnome-terminal "
    Or you can get a terminal by Pressing [Ctrl} + [Alt] + [F1] ~ [F6]
    A typical Terminal may look like this
    nightflare_7.png
    So now we have a terminal to work with. :-)

  2. Now we need to change current working folder location (In most cases its user's home directory. In my case its /home//Documents) to the folder, of which contents should be listed.
    you can view current working directory by the help of command. Type pwd and press [Enter]
    For this we can use cd command.
    Say, your folder whose contents should be listed is " Source " and is located in " /home/Documents/ " then you should type as

    cd /home/Documents/Source and press [Enter]

    For example, i need to create a list of my English video song collection ( My English songs are located on /media/FUNCLUB/2.VIDEO SONGS/ENGLISH ) , then i would type first:

    cd /media/FUNCLUB/2.VIDEO SONGS/ENGLISH

    To confirm working directory is changed properly, type " pwd " and press [Enter]. It should display our folder.
    nightflare_8.png

  3. Now type ' ls ' and press [Enter]. Then it should display folder's contents.
    nightflare_9.png
    If you can see contents of folder , everything is working well.

  4. Now need to tell ls how the contents should by displayed. There a lots of formats ls supports. Commonly used formats are
    • ls -l Display contents in detailed List View
      nightflare_10.png
      In Order Permissions Owner Group Size in Bytes Created On File Name

    • ls -h Tell ls to display sizes in human readable format (KB, Mb, GB etc.)
      This option uses in conjunction with other options like -l, -s etc
      nightflare_11.png

    • ls -s Display File name and its contents. Usually with -h
      nightflare_12.png

    • There are a lot more options to control the output format of ls command. To find more about this, please visit here.

  5. We have learned how to format output of ' ls '.
    ' ls ' command outputs to the standard Output (STDOUT) of computer, which is most commonly the monitor itself. Now all we need to save the screen prints to a file so that we can view results later.
    Here what we do is to transfer the output produced by ls command to a file. This is done by " > " ( 'Greater Than' Symbol ).
    'Character' - ' Purpose '
    ' > ' - Transfer the output from STDOUT to file
    ' >> ' - Append the output to specified file (Add the output to end of file)


    Usage:
    ls [Options] >[File]

    example:

    ls -sh >/home/nightflare/Desktop/List_Of_Video_files.txt

on Mar 29, 2011 | Computers & Internet

2 Answers

Download user manuel


Whether it's a *.pdf file or not, as soon as 1 programme can display the content of the manual, the same programme should be able to print it. e.g. print from adobe accrobat reader directly. Otherwise install the "open office" suite (costs 0) to open the manual file. that software should be able to print the content. (make sure the printer is correctly installed on your system.)
Good luck!

Aug 12, 2014 | Acer Iconia B1 7-Inch Tablet Black Dual...

1 Answer

Fax forword ricoh mp171


Print documents received and forward to a specified end receiver. This is useful if, for example, you are visiting another office and would like a copy of your documents to be sent to that office.
You can also specify a "folder" as the forwarding destination.
en-i_imp.gif
  • To use this function, set [Forwarding] under [Administrator Tools] to [On].
  • The Forwarding function does not forward documents received with Memory Lock.
  • You can select end receivers only from among destinations programmed in the Address Book. You cannot specify programmed transfer stations as end receivers.
A fax number, e-mail address, IP-Fax destination, and folder can be set as the forwarding destination.
When you wish to change the end receivers depending on the senders, specify the end receivers by the senders, at "Program Special Sender". Documents not received from specified senders are sent to the destination specified in this function. For details about programming special sender, see "Program Special Sender".
You can set whether or not to print the forwarded documents on this machine in "Parameter Setting" (switch 11, bit 6). See "Parameter Settings".
Deleting a destination specified as a forward destination from the destination list causes the settings of the forward destination to be deleted, so they must be registered again. When a destination is changed, a document is transmitted to the new destination. If there is no destination of the specified type, you can set which destination to be used as an alternative destination in "Parameter Setting" (switch 32, bit 0). See "Parameter Settings".
You can program one of the User Function keys with operations for this function. See "General Settings/Adjust".
If you have specified a folder for forwarding, you can specify the file format used for forwarding in "Parameter Setting" (switch 21, bit 3). See "Parameter Settings".
User Parameters (switch 37, bit 4) on the Fax Features menu allows you to include the sender's name in the names of files sent to folders. However, garbling of the file name and data loss can result if the receiver's operating system cannot accept certain characters in file names. To prevent this, use User Parameters (switch 37, bit 5) to limit the file names to plain characters only. If you limit file names to plain characters only but errors still occur, disable display of the sender's name in the file name of documents forwarded to folders. For details, see "Parameter Settings".
Using the parameter setting (switches 38 and 39), you can specify the maximum number of resends that the machine attempts if it fails to forward a fax (including faxes from special senders) to a folder destination, and the interval between the resend attempts.
en-i_ref.gif
or download the operations manual to guide you here ..http://support.ricoh.com/bb_v1oi/html/oi/re/model/mp171/mp171en.htm

Mar 24, 2013 | Ricoh Aficio Office Equipment & Supplies

1 Answer

HOW CAN I PRINT FOLDER CONTENTS SIMILLAR TO THE DOS CAOMMAND TREE > PRN


Go to start button. In the start menu click RUN and in the box that opens type "cmd"
In the CLI go to the directory of the folder whose content you want to print and type the following and press enter to create list.txt file first before printing.

dir /b /s /on >list.txt

This will give you a text file (list.txt) in the folder, that you
can manipulate, print etc. in a text editor or
word processor. In order to redirect the output
directly to your printer, instead of a text file, type:

dir /b /s /on >prn

Aug 25, 2010 | Microsoft Computers & Internet

1 Answer

How to delete internet files from C drive


Hi,
C:\Documents and Settings\(This will be your user login name)\Local Settings\Temporary Internet Files.

Go to the path specified and do shift + delete to completely delete all the contents .

Hope this helps.

Thanks for using Fixya.


Dec 09, 2009 | Acer Computers & Internet

6 Answers

Tally 5.4 error


try to configure your configuration setting. change the data source where you data saved.

Exp (from program files, configuration setting) :

;; Tally eis 5.4 workstation specific parameters file

[Tally]

; Specify location of Data files

Data = D:\data tally\Tally 2\DATA

;; Specify list of companies to preload
; ** TO STOP DEFAULT LOADING set the following line to NO

Default Companies = Yes

Load = 0001
;Load = 0002

; Specify list of TDL files for user defined reports and changes
; ** TO STOP LOADING TDL FILES, set the following line to NO

User TDL = Yes

;TDL = <TDL file 1>


; Specify location of TALLY.SAV (saved configuration of Tally)

Config = c:\TALLY

; Specify Color details of local monitor

Color = Yes



a bold letter is the source of data that you must change.

Jun 22, 2009 | Computers & Internet

1 Answer

I'm using MS Publisher 2007 and pdf creation problem


  1. On the File menu, click Publish as PDF or XPS.
  2. In the File name list, type or select a name for the publication.
  3. In the Save as type list, click PDF.
  4. Next to Optimize for, click Change.
  5. In the Publish Options dialog box, click the optimization in the Specify how this publication will be printed or distributed list that matches the needs of the publication. For example, if the publication will be distributed online and print quality is less important than a small file size, click Minimum size. If the quality of the printing is more important than file size, click High quality printing.
  6. Click Advanced to display the entire dialog box, and select the settings that you need. (Find links to more information on these options in the See Also section.)
  7. Click OK.
  8. In the Save As dialog box, if you want to open the file immediately after saving it, select the Open file after publishing check box. This check box is available only if you have a PDF reader installed on your computer, and if the Commercial Press option is not selected in the Publish Options dialog box.
  9. Click Save.

Feb 10, 2009 | Microsoft Office Publisher 2007 for PC

1 Answer

How to use cmd ?


to use the command prompt, press the "start" and "R" keys on the keyboard.
On the small, "Run" screen, type cmd.
click ok.

type help in the command prompt. This should print a list of commands that you can use with it.
This is what it puts on-screen:
For more information on a specific command, type HELP command-name
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences
between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP Provides Help information for Windows commands.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in batch files.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.

this window is used only when the desktop cannot be accessed.
For a user-friendly interface (easier to use), use My computer to do common tasks.

Aug 25, 2008 | Microsoft Windows Vista Home Premium with...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

45 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18425 Answers

Alun Cox

Level 3 Expert

2678 Answers

David Payne
David Payne

Level 3 Expert

14162 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...