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.

×

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

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,
a 6ya expert can help you resolve that 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.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

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

Tip

Some of the important cmd prompt commands


Copy and keep it handy..


ADDUSERS --Add or list users to/from a CSV file
ARP -- Address Resolution Protocol
ASSOC -- Change file extension associations
ASSOCIAT --One step file association
AT -- Schedule a command to run at a later time
ATTRIB --Change file attributes

BOOTCFG --Edit Windows boot settings
BROWSTAT --Get domain, browser and PDC info

CACLS -- Change file permissions
CALL --Call one batch program from another
CD --Change Directory - move to a specific Folder
CHANGE-- Change Terminal Server Session properties
CHKDSK -- Check Disk - check and repair disk problems
CHKNTFS -- Check the NTFS file system
CHOICE --Accept keyboard input to a batch file
CIPHER --Encrypt or Decrypt files/folders
CleanMgr ---Automated cleanup of Temp files, recycle bin
CLEARMEM ---Clear memory leaks
CLIP ---Copy STDIN to the Windows clipboard.
CLS ---Clear the screen
CLUSTER ---Windows Clustering
CMD ---Start a new CMD shell
COLOR --- Change colors of the CMD window
COMP ---Compare the contents of two files or sets of files
COMPACT --- Compress files or folders on an NTFS partition
COMPRESS ---Compress individual files on an NTFS partition
CON2PRT ---Connect or disconnect a Printer
CONVERT ---Convert a FAT drive to NTFS.
COPY ---Copy one or more files to another location
CSCcmd ---Client-side caching (Offline Files)
CSVDE ---Import or Export Active Directory data

DATE --- Display or set the date
Dcomcnfg DCOM ---Configuration Utility
DEFRAG ---Defragment hard drive
DEL ---Delete one or more files
DELPROF--- Delete NT user profiles
DELTREE ---Delete a folder and all subfolders
DevCon ---Device Manager Command Line Utility
DIR ---Display a list of files and folders
DIRUSE --- Display disk usage
DISKCOMP--- Compare the contents of two floppy disks
DISKCOPY ---Copy the contents of one floppy disk to another
DNSSTAT ---DNS Statistics
DOSKEY --- Edit command line, recall commands, and create macros
DSADD ---Add user (computer, group..) to active directory
DSQUERY--- List items in active directory
DSMOD ---Modify user (computer, group..) in active directory

ECHO--- Display message on screen
ENDLOCAL--- End localisation of environment changes in a batch file
ERASE ---Delete one or more files
EXIT ---Quit the current script/routine and set an errorlevel.
EXPAND --- Uncompress files
EXTRACT--- Uncompress CAB files

FC--- Compare two files
FDISK--- Disk Format and partition
FIND ---Search for a text string in a file
FINDSTR--- Search for strings in files
FOR /F ---Loop command: against a set of files
FOR /F ---Loop command: against the results of another command
FOR ---Loop command: all options Files, Directory, List
FORFILES ---Batch process multiple files
FORMAT ---Format a disk
FREEDISK ---Check free disk space (in bytes)
FSUTIL --- File and Volume utilities
FTP --- File Transfer Protocol
FTYPE--- Display or modify file types used in file extension associations

GLOBAL --- Display membership of global groups
GOTO ---Direct a batch program to jump to a labelled line

HELP--- Online Help
HFNETCHK--- Network Security Hotfix Checker

IF--- Conditionally perform a command
IFMEMBER Is the current user in an NT Workgroup
IPCONFIG Configure IP

KILL Remove a program from memory

LABEL --- Edit a disk label
LOCAL --- Display membership of local groups
LOGEVENT--- Write text to the NT event viewer.
LOGOFF --- Log a user off
LOGTIME --- Log the date and time in a file

MAPISEND ---Send email from the command line
MEM --- Display memory usage
MD --- Create new folders
MKLINK --- Create a symbolic link (linkd)
MODE ---Configure a system device
MORE --- Display output, one screen at a time
MOUNTVOL ----Manage a volume mount point
MOVE --- Move files from one folder to another
MOVEUSER--- Move a user from one domain to another
MSG ---Send a message
MSIEXEC --- Microsoft Windows Installer
MSINFO ---Windows NT diagnostics
MSTSC --- Terminal Server Connection (Remote Desktop Protocol)
MUNGE --- Find and Replace text within file(s)
MV --- Copy in-use files

NET --- Manage network resources
NETDOM --- Domain Manager
NETSH ---Configure network protocols
NETSVC ---Command-line Service Controller
NBTSTAT --- Display networking statistics (NetBIOS over TCP/IP)
NETSTAT --- Display networking statistics (TCP/IP)
NOW --- Display the current Date and Time
NSLOOKUP--- Name server lookup
NTBACKUP ---Backup folders to tape
NTRIGHTS E---dit user account rights

PATH --- Display or set a search path for executable files
PATHPING ---Trace route plus network latency and packet loss
PAUSE --- Suspend processing of a batch file and display a message
PERMS --- Show permissions for a user
PERFMON ---Performance Monitor
PING ---Test a network connection
POPD --- Restore the previous value of the current directory saved by PUSHD
PORTQRY--- Display the status of ports and services
PRINT --- Print a text file
PRNCNFG --- Display, configure or rename a printer
PRNMNGR --- Add, delete, list printers set the default printer
PROMPT --- Change the command prompt
PsExec --- Execute process remotely
PsFile --- Show files opened remotely
PsGetSid --- Display the SID of a computer or a user
PsInfo ---List information about a system
PsKill --- Kill processes by name or process ID
PsList --- List detailed information about processes
PsLoggedOn ---Who's logged on (locally or via resource sharing)
PsLogList ---Event log records
PsPasswd --- Change account password
PsService --- View and control services
PsShutdown ---Shutdown or reboot a computer
PsSuspend ---Suspend processes
PUSHD --- Save and then change the current directory

QGREP --- Search file(s) for lines that match a given pattern.

RASDIAL ---Manage RAS connections
RASPHONE ---Manage RAS connections
RECOVER --- Recover a damaged file from a defective disk.
REG --- Registry: Read, Set, Export, Delete keys and values
REGEDIT --- Import or export registry settings
REGSVR32--- Register or unregister a DLL
REGINI ---Change Registry Permissions
REM --- Record comments (remarks) in a batch file
REN --- Rename a file or files.
REPLACE --- Replace or update one file with another
RD ---Delete folder(s) [remove dir]
RDISK ---Create a Recovery Disk
RMTSHARE ---Share a folder or a printer
ROBOCOPY--- Robust File and Folder Copy
ROUTE --- Manipulate network routing tables
RUNAS --- Execute a program under a different user account
RUNDLL32--- Run a DLL command (add/remove print connections)

SC --- Service Control
SCHTASKS--- Create or Edit Scheduled Tasks
SCLIST --- Display NT Services
ScriptIt Control ---GUI applications
SET --- Display, set, or remove environment variables
SETLOCAL--- Control the visibility of environment variables
SETX ---Set environment variables permanently
SHARE --- List or edit a file share or print share
SHIFT --- Shift the position of replaceable parameters in a batch file
SHORTCUT ---Create a windows shortcut (.LNK file)
SHOWGRPS ---List the NT Workgroups a user has joined
SHOWMBRS ---List the Users who are members of a Workgroup
SHUTDOWN ---Shutdown the computer
SLEEP --- Wait for x seconds
SOON --- Schedule a command to run in the near future
SORT --- Sort input
START --- Start a separate window to run a specified program or command
SU ---Switch User
SUBINACL ---Edit file and folder Permissions, Ownership and Domain
SUBST --- Associate a path with a drive letter
SYSTEMINFO--- List system configuration
TASKLIST--- List running applications and services
TIME ---Display or set the system time
TIMEOUT--- Delay processing of a batch file
TITLE --- Set the window title for a CMD.EXE session
TOUCH --- Change file timestamps
TRACERT --- Trace route to a remote host
TREE --- Graphical display of folder structure
TYPE --- Display the contents of a text file
USRSTAT--- List domain usernames and last login
VER ---Display version information
VERIFY --- Verify that files have been saved
VOL --- Display a disk label
WHERE --- Locate and display files in a directory tree
WHOAMI --- Output the current UserName and domain
WINDIFF --- Compare the contents of two files or sets of files
WINMSD --- Windows system diagnostics
WINMSDP--- Windows system diagnostics II
WMIC ---WMI Commands
XCACLS --- Change file permissions
XCOPY--- Copy files and folders

on Dec 16, 2009 | 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

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...

1 Answer

Install of IBM infoprint printer drivers


make sure you are logged on a the Administrator to the computer then try installing..

Dec 26, 2007 | Office Equipment & Supplies

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

Related Topics:

44 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

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

Answer questions

Manuals & User Guides

Loading...